def getservbyname(servicename, protocolname=None):
 return _ResolveService(servicename, protocolname)[1]

def getservbyname ( servicename , protocolname = None ) : return _ResolveService ( servicename , protocolname ) [ 1 ]
getservbyname -> integer return a port number from a service name and protocol name .