本文整理匯總了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])
示例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()
示例3: z85_encode
def z85_encode(dest, data, size):
return Z.zmq_z85_encode(dest, data, size)
示例4: poll
def poll(items, nitem, timeout):
return Z.zmq_poll(items, nitem, timeout)
示例5: sendmsg
def sendmsg(sock, msg, flags):
return Z.zmq_sendmsg(sock, msg, flags)
示例6: recv
def recv(sock, buf, len, flags):
return Z.zmq_recv(sock, buf, len, flags)
示例7: disconnect
def disconnect(sock, addr):
return Z.zmq_disconnect(sock, addr)
示例8: connect
def connect(sock, addr):
return Z.zmq_connect(sock, addr)
示例9: msg_data
def msg_data(msg):
return Z.zmq_msg_data(msg)
示例10: msg_copy
def msg_copy(dest, src):
return Z.zmq_msg_copy(dest, src)
示例11: msg_move
def msg_move(dest, src):
return Z.zmq_msg_move(dest, src)
示例12: msg_close
def msg_close(msg):
return Z.zmq_msg_close(msg)
示例13: msg_recv
def msg_recv(msg, s, flags):
return Z.zmq_msg_recv(msg, s, flags)
示例14: msg_send
def msg_send(msg, s, flags):
return Z.zmq_msg_send(msg, s, flags)
示例15: msg_init_data
def msg_init_data(msg, data, size, ffn, hint):
return Z.zmq_msg_init_data(msg, data, size, ffn, hint)