當前位置: 首頁>>代碼示例>>Python>>正文


Python _cffi.Z類代碼示例

本文整理匯總了Python中pyczmq._cffi.Z的典型用法代碼示例。如果您正苦於以下問題:Python Z類的具體用法?Python Z怎麽用?Python Z使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Z類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: version

def version():
    """Returns the tuple (major, minor, patch) of the current zmq
    version.
    """
    major = ffi.new('int*')
    minor= ffi.new('int*')
    patch = ffi.new('int*')
    Z.zmq_version(major, minor, patch)
    return (major[0], minor[0], patch[0])
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:9,代碼來源:zmq.py

示例2: errno

def errno():
    """
    This function retrieves the errno as it is known to 0MQ
    library. The goal of this function is to make the code 100%
    portable, including where 0MQ compiled with certain CRT library
    (on Windows) is linked to an application that uses different CRT
    library.
    """
    return Z.zmq_errno()
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:9,代碼來源:zmq.py

示例3: z85_encode

def z85_encode(dest, data, size):
    return Z.zmq_z85_encode(dest, data, size)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例4: poll

def poll(items, nitem, timeout):
    return Z.zmq_poll(items, nitem, timeout)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例5: sendmsg

def sendmsg(sock, msg, flags):
    return Z.zmq_sendmsg(sock, msg, flags)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例6: recv

def recv(sock, buf, len, flags):
    return Z.zmq_recv(sock, buf, len, flags)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例7: disconnect

def disconnect(sock, addr):
    return Z.zmq_disconnect(sock, addr)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例8: connect

def connect(sock, addr):
    return Z.zmq_connect(sock, addr)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例9: msg_data

def msg_data(msg):
    return Z.zmq_msg_data(msg)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例10: msg_copy

def msg_copy(dest, src):
    return Z.zmq_msg_copy(dest, src)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例11: msg_move

def msg_move(dest, src):
    return Z.zmq_msg_move(dest, src)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例12: msg_close

def msg_close(msg):
    return Z.zmq_msg_close(msg)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例13: msg_recv

def msg_recv(msg, s, flags):
    return Z.zmq_msg_recv(msg, s, flags)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例14: msg_send

def msg_send(msg, s, flags):
    return Z.zmq_msg_send(msg, s, flags)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py

示例15: msg_init_data

def msg_init_data(msg, data, size, ffn, hint):
    return Z.zmq_msg_init_data(msg, data, size, ffn, hint)
開發者ID:hintjens,項目名稱:pyczmq,代碼行數:2,代碼來源:zmq.py


注:本文中的pyczmq._cffi.Z類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。