Previous Topic: NotesNext Topic: Parameters


GETSERVBYPORT

GETSERVBYPORT takes a port number and a protocol number and tries to resolve them using the services file. If successful, it returns the information in a SERVENT structure.

Assembler

Label    #SOCKET GETSERVBYPORT,
               RETCODE=return-code,
               ERRNO=errno,
               RSNCODE=reason-code,
               PORT=port-number,
               PROTNAME=protocol-name,
               PROTNAML=protocol-name-length,
               SERVENTP=serventp,
               PLIST=parameter-list-area,
               RGSV=(rgsv)

List of USING Parameters

SOCKET-FUNCTION-GETSERVBYPORT,
return-code,
errno,
reason-code,
port-number,
protocol-name,
protocol-name-length,
serventp