当前位置: 首页>>代码示例>>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;未经允许,请勿转载。