本文整理汇总了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)