#NEWLINE# def bind( self , server , net = None , address = None ) : #NEWLINE# #INDENT# 'Create a network adapter object and bind.' #NEWLINE# if _debug : #NEWLINE# #INDENT# NetworkServiceAccessPoint . _debug ( 'bind %r net=%r address=%r' , server , net , address ) #NEWLINE# #UNINDENT# if ( ( net is None ) and self . adapters ) : #NEWLINE# #INDENT# raise RuntimeError ( 'already bound' ) #NEWLINE# #UNINDENT# adapter = NetworkAdapter ( self , net ) #NEWLINE# if address : #NEWLINE# #INDENT# self . localAdapter = adapter #NEWLINE# self . localAddress = address #NEWLINE# #UNINDENT# bind ( adapter , server )