PyDocs

Nav

Networking and Interprocess Communication

getservbyname

socket

functionnot WASI
  • getservbyname(servicename[, protocolname])
getservbyname(servicename[, protocolname]) -> integer

Return a port number from a service name and protocol name.
The optional protocol name, if given, should be 'tcp' or 'udp',
otherwise any protocol will match.
0 Examples
No examples for socket/getservbyname.
See Also
No see-alsos for socket/getservbyname
0 Notes
No notes for getservbyname