getservbyname function winsock

Pointer<servent> getservbyname(
  1. Pointer<Utf8> name,
  2. Pointer<Utf8> proto
)

The getservbyname function retrieves service information corresponding to a service name and protocol.

servent *WSAAPI getservbyname(
  const char *name,
  const char *proto
);

Implementation

Pointer<servent> getservbyname(Pointer<Utf8> name, Pointer<Utf8> proto) =>
    _getservbyname(name, proto);