コード例 #1
0
ファイル: zcertstore.py プロジェクト: minrk/pyczmq
def insert(store, cert):
    """
    Insert certificate into certificate store in memory. Note that this
    does not save the certificate to disk. To do that, use zcert_save()
    directly on the certificate. Takes ownership of zcert_t object.
    """
    return C.zcertstore_insert(store, ptop('zcert_t', cert))
コード例 #2
0
ファイル: zmsg.py プロジェクト: minrk/pyczmq
def send(m, socket):
    """
    Send message to socket, destroy after sending. If the message has no
    frames, sends nothing but destroys the message anyhow. Safe to call
    if zmsg is null.
    """
    return C.zmsg_send(ptop('zmsg_t', m), socket)
コード例 #3
0
ファイル: zmsg.py プロジェクト: fantix/pyczmq
def send(m, socket):
    """
    Send message to socket, destroy after sending. If the message has no
    frames, sends nothing but destroys the message anyhow. Safe to call
    if zmsg is null.
    """
    return C.zmsg_send(ptop('zmsg_t', m), socket)
コード例 #4
0
ファイル: zcertstore.py プロジェクト: hintjens/pyczmq
def insert(store, cert):
    """
    Insert certificate into certificate store in memory. Note that this 
    does not save the certificate to disk. To do that, use zcert_save()
    directly on the certificate. Takes ownership of zcert_t object.
    """
    return C.zcertstore_insert(store, ptop('zcert_t', cert))
コード例 #5
0
ファイル: zloop.py プロジェクト: minrk/pyczmq
def destroy(loop):
    """
    Destroy a reactor, this is not necessary if you create it with
    new.
    """
    if loop is not ffi.NULL:
        C.zloop_destroy(ptop('zloop_t', loop))
    return ffi.NULL
コード例 #6
0
ファイル: zmsg.py プロジェクト: fantix/pyczmq
def append(m, f):
    """
    Add frame to the end of the message, i.e. after all other frames.
    Message takes ownership of frame, will destroy it when message is sent.
    Returns 0 on success. Deprecates zmsg_add, which did not nullify the
    caller's frame reference.
    """
    return C.zmsg_append(m, ptop('zframe_t', f))
コード例 #7
0
ファイル: zloop.py プロジェクト: mhaberler/pyczmq
def destroy(loop):
    """
    Destroy a reactor, this is not necessary if you create it with
    new.
    """
    if loop is not ffi.NULL:
        C.zloop_destroy(ptop('zloop_t', loop))
    return ffi.NULL
コード例 #8
0
ファイル: zmsg.py プロジェクト: minrk/pyczmq
def append(m, f):
    """
    Add frame to the end of the message, i.e. after all other frames.
    Message takes ownership of frame, will destroy it when message is sent.
    Returns 0 on success. Deprecates zmsg_add, which did not nullify the
    caller's frame reference.
    """
    return C.zmsg_append(m, ptop('zframe_t', f))
コード例 #9
0
ファイル: zmsg.py プロジェクト: fantix/pyczmq
def destroy(m):
    """Destroy a message object and all frames it contains
    """
    C.zmsg_destroy(ptop('zmsg_t', m))
コード例 #10
0
ファイル: zmsg.py プロジェクト: minrk/pyczmq
def destroy(m):
    """Destroy a message object and all frames it contains
    """
    C.zmsg_destroy(ptop('zmsg_t', m))
コード例 #11
0
ファイル: zframe.py プロジェクト: jasco/pyczmq
def destroy(frame):
    """Destroy a frame
    """
    C.zframe_destroy(ptop("zframe_t", frame))
コード例 #12
0
def destroy(cert):
    """Destroy a certificate in memory
    """
    C.zcert_destroy(ptop('zcert_t', cert))
コード例 #13
0
ファイル: zloop.py プロジェクト: hintjens/pyczmq
def destroy(loop):
    """
    Destroy a reactor, this is not necessary if you create it with
    new.
    """
    return C.zloop_destroy(ptop('zloop_t', loop))
コード例 #14
0
def destroy(beacon):
    """Destroy a beacon
    """
    C.zbeacon_destroy(ptop('zbeacon_t', beacon))
コード例 #15
0
def destroy(frame):
    """Destroy a frame
    """
    C.zframe_destroy(ptop('zframe_t', frame))
コード例 #16
0
ファイル: zctx.py プロジェクト: marquisrobb/pyczmq
def destroy(ctx):
    """
    Destroy context and all sockets in it
    """
    #if ctx is not ffi.NULL:
    C.zctx_destroy(ptop('zctx_t', ctx))
コード例 #17
0
ファイル: zsock.py プロジェクト: cyrilleverrier/pyczmq
def destroy(sock):
    """Destroy a sock."""
    C.zsock_destroy(ptop('zsock_t', sock))
コード例 #18
0
ファイル: zcertstore.py プロジェクト: hintjens/pyczmq
def destroy(store):
    """
    Destroy a certificate store object in memory. Does not affect anything
    stored on disk.
    """
    C.zcertstore_destroy(ptop('zcertstore_t', store))
コード例 #19
0
def destroy(auth):
    """ Destructor """
    C.zauth_destroy(ptop('zauth_t', auth))
コード例 #20
0
def send(frame, socket, flags):
    """
    Send a frame to a socket, destroy frame after sending.
    Return -1 on error, 0 on success.
    """
    return C.zframe_send(ptop('zframe_t', frame), socket, flags)
コード例 #21
0
ファイル: zcertstore.py プロジェクト: minrk/pyczmq
def destroy(store):
    """
    Destroy a certificate store object in memory. Does not affect anything
    stored on disk.
    """
    C.zcertstore_destroy(ptop('zcertstore_t', store))
コード例 #22
0
ファイル: zframe.py プロジェクト: jasco/pyczmq
def send(frame, socket, flags):
    """
    Send a frame to a socket, destroy frame after sending.
    Return -1 on error, 0 on success.
    """
    return C.zframe_send(ptop("zframe_t", frame), socket, flags)
コード例 #23
0
ファイル: zctx.py プロジェクト: aburan28/pyczmq
def destroy(ctx):
    """
    Destroy context and all sockets in it
    """
    #if ctx is not ffi.NULL:
    C.zctx_destroy(ptop('zctx_t', ctx))
コード例 #24
0
ファイル: zpoller.py プロジェクト: hintjens/pyczmq
def destroy(poller):
    """Destroy a poller"""
    C.zpoller_destroy(ptop("zpoller_t", poller))
コード例 #25
0
ファイル: zframe.py プロジェクト: hintjens/pyczmq
def destroy(frame):
    """Destroy a frame
    """
    return C.zframe_destroy(ptop('zframe_t', frame))
コード例 #26
0
ファイル: zauth.py プロジェクト: aburan28/pyczmq
def destroy(auth):
    """ Destructor """
    C.zauth_destroy(ptop('zauth_t', auth))
コード例 #27
0
ファイル: zsock.py プロジェクト: cyrilleverrier/pyczmq
def send(sock, msg):
    """Send a zmsg message to the socket, take ownership of the message
    and destroy when it has been sent.
    """
    return C.zsock_send(sock, ptop('zmsg_t', msg))
コード例 #28
0
ファイル: zctx.py プロジェクト: hintjens/pyczmq
def destroy(ctx):
    """
    Destroy context and all sockets in it
    """
    return C.zctx_destroy(ptop('zctx_t', ctx))
コード例 #29
0
ファイル: zactor.py プロジェクト: cyrilleverrier/pyczmq
def destroy(actor):
    """Destroy an actor."""
    C.zactor_destroy(ptop('zactor_t', actor))
コード例 #30
0
ファイル: zpoller.py プロジェクト: minrk/pyczmq
def destroy(poller):
    """Destroy a poller"""
    C.zpoller_destroy(ptop('zpoller_t', poller))