Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
socket_transport_name_get(2) OSS System Calls Reference Manual
NAME
socket_transport_name_get - Gets the name of the transport-provider process
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#define _XOPEN_SOURCE_EXTENDED 1
#include <sys/socket.h>
int socket_transport_name_get(
int domain,
char *buffer,
int maxlen
);
PARAMETERS
domain Specifies the domain for which the transport-provider process name should be
obtained. The following values are valid:
AF_INET Specifies the Internet domain using IPv4 addresses
AF_INET6 Specifies the Internet domain using IPv6 addresses
AF_UNIX Specifies the local sockets domain
buffer Points to the buffer to contain the null-terminated transport-provider process
name.
maxlen Specifies the length in bytes of the buffer pointed to by the buffer parameter.
This value should be at least 9 so that the buffer is large enough to contain the
null terminator and an 8-character process name.
DESCRIPTION
The socket_transport_name_get() function returns the name of the transport-provider process
for the indicated domain as set by the most recent call to the socket_transport_name_set()
function, or it returns the default value if no calls to the socket_transport_name_set() function
have been made. The default transport-provider processes for each domain are as follows:
AF_INET or AF_INET6
The default transport-provider process is $ZTC0, unless overridden by an exist-
ing Guardian DEFINE =TCPIPˆPROCESSˆNAME.
AF_UNIX For systems running AF_UNIX Release 1 software, $ZPLS is the only supported
AF_UNIX transport-provider name. The default transport-provider name is
$ZPLS.
For systems running AF_UNIX Release 2 software:
The transport-provider name $ZAFN2 indicates that this is an AF_UNIX
Release 2 socket in portability mode.
The transport-provider name $ZPLS indicates that this is an AF_UNIX Release
2 socket in compatibility mode. The default transport-provider name is $ZPLS.
For more information about AF_UNIX Release 2, see the Open System Services Programmer’s
Guide.
7−124 Hewlett-Packard Company 527186-023