VMS Help  —  TCPIP Services, Programming Interfaces, Socket API Functions, getservbyport()  Description
    This function searches the services database until a matching
    port is found, or until end of file is encountered. If a protocol
    name is also supplied, searches must also match the protocol.
    This function returns a pointer to a servent structure containing
    the broken-out fields of the requested line in the network
    services database. For information about the servent structure,
    refer to servent Structure.
    All information is contained in a static area, so it must be
    copied to be saved.
    Related Functions
    See also getservbyname().
Close Help