Esempio n. 1
0
 def shadow(cls, address):
     """Shadow an existing libzmq socket
     
     address is the integer address of the libzmq socket
     or an FFI pointer to it.
     """
     address = cast_int_addr(address)
     return cls(shadow=address)
Esempio n. 2
0
 def shadow(cls, address):
     """Shadow an existing libzmq context
     
     address is the integer address of the libzmq context
     or an FFI pointer to it.
     
     .. versionadded:: 14.1
     """
     address = cast_int_addr(address)
     return cls(shadow=address)
Esempio n. 3
0
 def shadow(cls, address):
     """Shadow an existing libzmq socket
     
     address is the integer address of the libzmq socket
     or an FFI pointer to it.
     
     .. versionadded:: 14.1
     """
     address = cast_int_addr(address)
     return cls(shadow=address)
Esempio n. 4
0
 def shadow_pyczmq(cls, ctx):
     """Shadow an existing pyczmq context
     
     ctx is the FFI `zctx_t *` pointer
     """
     from pyczmq import zctx
     
     underlying = zctx.underlying(ctx)
     address = cast_int_addr(underlying)
     return cls(shadow=address)
Esempio n. 5
0
 def shadow(cls, address):
     """Shadow an existing libzmq context
     
     address is the integer address of the libzmq context
     or an FFI pointer to it.
     
     .. versionadded:: 14.1
     """
     from zmq.utils.interop import cast_int_addr
     address = cast_int_addr(address)
     return cls(shadow=address)
Esempio n. 6
0
 def shadow(cls, address):
     """Shadow an existing libzmq socket
     
     address is the integer address of the libzmq socket
     or an FFI pointer to it.
     
     .. versionadded:: 14.1
     """
     from zmq.utils.interop import cast_int_addr
     address = cast_int_addr(address)
     return cls(shadow=address)
Esempio n. 7
0
    def shadow_pyczmq(cls, ctx):
        """Shadow an existing pyczmq context
        
        ctx is the FFI `zctx_t *` pointer
        
        .. versionadded:: 14.1
        """
        from pyczmq import zctx

        underlying = zctx.underlying(ctx)
        address = cast_int_addr(underlying)
        return cls(shadow=address)
Esempio n. 8
0
 def shadow_pyczmq(cls, ctx):
     """Shadow an existing pyczmq context
     
     ctx is the FFI `zctx_t *` pointer
     
     .. versionadded:: 14.1
     """
     from pyczmq import zctx
     from zmq.utils.interop import cast_int_addr
     
     underlying = zctx.underlying(ctx)
     address = cast_int_addr(underlying)
     return cls(shadow=address)