#NEWLINE# def __init__( self , config ) : #NEWLINE# #INDENT# self . config = config #NEWLINE# self . context = zmq . Context ( ) #NEWLINE# self . socket = self . context . socket ( zmq . ROUTER ) #NEWLINE# endpoint = ':' . join ( [ self . config [ 'bind' ] , self . config [ 'port' ] ] ) #NEWLINE# self . host = self . _gen_bind_adress ( self . config [ 'transport' ] , endpoint ) #NEWLINE# self . socket . bind ( endpoint . host )