def _parseTCP(factory, port, interface='', backlog=50):
 return ((int(port), factory), {'interface': interface, 'backlog': int(backlog)})

def _parseTCP ( factory , port , interface = '' , backlog = 50 ) : return ( ( int ( port ) , factory ) , { 'interface' : interface , 'backlog' : int ( backlog ) } )
internal parser function for l{_parseserver} to convert the string arguments for a tcp stream endpoint into the structured arguments .