ZIO
Python and C++ interface to ZeroMQ and Zyre
Functions | Variables
zio.util Namespace Reference

Functions

def needs_codec (stype)
 
def guess_hostname ()
 
def byteify_list (lst)
 

Variables

list socket_names
 

Detailed Description

Utilities

Function Documentation

◆ byteify_list()

def zio.util.byteify_list (   lst)
Encode to bytes elements of a list

:param lst: list of things that can be converted to bytes
:returns: list of bytes
:rtype: list

Definition at line 56 of file util.py.

◆ guess_hostname()

def zio.util.guess_hostname ( )
Guess the local hostname

:returns: host name
:rtype: string

Definition at line 46 of file util.py.

◆ needs_codec()

def zio.util.needs_codec (   stype)
Determine if socket needs codec

:param stype: a ZeroMQ socket type number
:returns: True if socket type stype requires single-part messages
:rtype: bool

Definition at line 32 of file util.py.

Variable Documentation

◆ socket_names

list zio.util.socket_names
Initial value:
1 = [
2  "PAIR",
3  "PUB",
4  "SUB",
5  "REQ",
6  "REP",
7  "DEALER",
8  "ROUTER",
9  "PULL",
10  "PUSH",
11  "XPUB",
12  "XSUB",
13  "STREAM",
14  "SERVER",
15  "CLIENT",
16  "RADIO",
17  "DISH",
18  "GATHER",
19  "SCATTER",
20  "DGRAM",
21  0
22 ]

Definition at line 8 of file util.py.