Previous Topic: HOSTENT StructureNext Topic: Socket Structure Descriptions


SERVENT Structure

The SERVENT structure is returned by the GETSERVBYNAME and GETSERVBYPORT function calls.

Field

Description

Service name

Address of a service name (null-terminated string).

Aliases

Address of a zero-terminated array of pointers to aliases, which are null-terminated strings.

Port

Port number associated with a service.

Protocol

Address of the protocol associated with a service (null-terminated string).