Exemplo n.º 1
0
def connect(sock, endpoint):
    """Connect a socket to a formatted endpoint
    Returns 0 if OK, -1 if the endpoint was invalid."""
    return C.zsock_connect(sock, endpoint)