PyDocs

Nav

Networking and Interprocess Communication

getservbyport

socket

functionnot WASI
  • getservbyport(port[, protocolname])
getservbyport(port[, protocolname]) -> string

Return the service name from a port number 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/getservbyport.
See Also
No see-alsos for socket/getservbyport
0 Notes
No notes for getservbyport