Previous Topic: ParametersNext Topic: Parameters


GETSERVBYNAME

GETSERVBYNAME takes a service name and a protocol and tries to resolve them using the services file. If successful, it returns the information in a SERVENT structure.

Assembler

Label    #SOCKET GETSERVBYNAME,
               RETCODE=return-code,
               ERRNO=errno,
               RSNCODE=reason-code,
               SERVNAME=service-name,
               SERVNAML=service-name-length,
               PROTNAME=protocol-name,
               PROTNAML=protocol-name-length,
               SERVENTP=serventp,
               PLIST=parameter-list-area,
               RGSV=(rgsv)

List of USING Parameters

SOCKET-FUNCTION-GETSERVBYNAME,
return-code,
errno,
reason-code,
service-name,
service-name-length,
protocol-name,
protocol-name-length,
serventp