Beispiel #1
0
def resolve(sock):
    """Probe the supplied reference. If it looks like a zsock_t instance,
    return the underlying libzmq socket handle; else if it looks like
    a libzmq socket handle, return the supplied value."""
    return C.zsock_resolve(sock)