예제 #1
0
파일: socket.py 프로젝트: lanwan/pyzmq
 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)
예제 #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)
예제 #3
0
파일: socket.py 프로젝트: yyt030/pyzmq
 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)
예제 #4
0
파일: context.py 프로젝트: lanwan/pyzmq
 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)
예제 #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)
예제 #6
0
파일: socket.py 프로젝트: dennislwm/pyzmq
 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)
예제 #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)
예제 #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)