TCP/IP Programming Manual
C Synopsis
#include "netdb.h"
void socket_set_inet_name (name_ptr);
char *name_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
void socket_set_inet_name (name_ptr);
STRING .EXT name_ptr;
name_ptr
input value; points to a null-terminated character string containing the process name of the
NonStop TCP/IP or TCP6SAM process that is to be accessed by subsequent calls to socket
or socket_nw.
Errors
No errors are returned for this function.
Usage Guidelines
The socket or socket_nw function opens the NonStop TCP/IP, TCP6SAM or CIPSAM process
by name. Therefore, the function must know the name of this process. If your program calls the
socket_set_inet_name function before calling the socket or socket_nw function, the socket
library opens the TCP/IP process you specified.
If your program does not call socket_set_inet_name, the socket library opens the process
with the name defined for =TCPIP^PROCESS^NAME DEFINE. If a defined name does not exist,
the socket library uses the default process $ZTC0. For more information on
=TCPIP^PROCESS^NAME, see Using the DEFINE Command (page 29).
NOTE: Name resolver socket API calls (for example, gethostbyname, gethostbyaddr,
getaddrinfo, and so on) access the TCP/IP stack through the TCP/IP socket library (which makes
the initial socket or socket_nw call). The TCP/IP stack that is used by these socket library calls
is assigned by either the =TCPIP^PROCESS^NAME TACL DEFINE or by the
socket_set_inet_name socket API call.
t_recvfrom_nw
The t_recvfrom_nw function receives data on an unconnected UDP socket or raw socket created
for nowait operations. This routine is replaced by the recvfrom_nw routine.
C Synopsis
#include <socket.h>
#include <in.h>
#include <netdb.h>
error = t_recvfrom_nw (socket, r_buffer_ptr, length,
flags, tag );
int socket, length, error, flags;
struct sendto_recvfrom_buf *r_buffer_ptr;
long tag;
TAL Synopsis
t_recvfrom_nw 201