getservbyport function winsock

Pointer<SERVENT> getservbyport(
  1. int port,
  2. Pointer<Utf8> proto
)

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);