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

Classes

class  Port
 

Functions

def bind_address (sock, addr)
 
def bind_hostport (sock, host, port)
 

Variables

tuple ephemeral_port_range = (49152, 65535)
 

Function Documentation

◆ bind_address()

def zio.port.bind_address (   sock,
  addr 
)
Bind socket to address

Any error is printed and reraised.

:param sock: ZeroMQ socket object
:param addr: address in ZeroMQ format
:returns: the address
:rtype: string

Definition at line 8 of file port.py.

◆ bind_hostport()

def zio.port.bind_hostport (   sock,
  host,
  port 
)
Bind socket TCP host and port

:param sock: ZeroMQ socket object
:param host: name or IP address of host to bind
:param port: TCP port number
:returns: ZeroMQ address string
:rtype: string

Definition at line 29 of file port.py.

Variable Documentation

◆ ephemeral_port_range

tuple zio.port.ephemeral_port_range = (49152, 65535)

Definition at line 27 of file port.py.