Ejemplo n.º 1
0
def type_str(sock):
    """Returns socket type as printable constant string"""
    return ffi.string(C.zsocket_type_str(sock))
Ejemplo n.º 2
0
def type_str(sock):
    """Returns socket type as printable constant string"""
    return ffi.string(C.zsock_type_str(sock))
Ejemplo n.º 3
0
def meta(cert, name):
    """
    Get metadata value from certificate; if the metadata value doesn
    exist, returns NULL.
    """
    return ffi.string(C.zcert_meta(cert, name))
Ejemplo n.º 4
0
def secret_txt(cert):
    """
    Return secret part of key pair as Z85 armored string
    """
    return ffi.string(C.zcert_secret_txt(cert))
Ejemplo n.º 5
0
def public_txt(cert):
    """
    Return public part of key pair as Z85 armored string
    """
    return ffi.string(C.zcert_public_txt(cert))
Ejemplo n.º 6
0
Archivo: zmq.py Proyecto: minrk/pyczmq
def strerror(num):
    """
    Resolves system errors and 0MQ errors to human-readable string.
    """
    return ffi.string(Z.zmq_strerror(num))
Ejemplo n.º 7
0
def strerror(num):
    """
    Resolves system errors and 0MQ errors to human-readable string.
    """
    return ffi.string(Z.zmq_strerror(num))