getservbyport function winsock
The getservbyport function retrieves service information corresponding to a port and protocol.
servent* getservbyport(
int port,
const char *proto
);
Implementation
Pointer<SERVENT> getservbyport(int port, Pointer<Utf8> proto) =>
_getservbyport(port, proto);