Creates a socket with a well-known port for a Remote Procedure Call (RPC) server.
void rpc_$use_family_wk ( family, if_spec, sockaddr, slength, status)
unsigned long family;
rpc_$if_spec_t *if_spec;
socket_$addr_t *sockaddr;
unsigned long *slength;
status_$t *status;
The rpc_$use_family_wk routine creates a socket that uses the port specified with the if_spec parameter. Use this routine to create a socket if a server must listen on a particular well-known port. Otherwise, create the socket with the rpc_$use_family routine.
A server can listen on more than one socket. However, a server normally does not listen on more than one socket for each address family, regardless of the number of interfaces that it exports. Therefore, most servers that use well-known ports should make this call once for each supported address family.
Note: This routine is used by servers only.
The rpc_$use_family_wk
routine fails if one of the following is true:
To create a well-known socket for an array processor server, enter:
rpc_$use_family_wk (socket_$internet, &matrix_$if_spec, &sockaddr, slen, &st);
This Library Routine is part of Network Computing System in Network Support Facilities in Base Operating System (BOS) Runtime.
Remote Procedure Call (RPC) Runtime Library (NCS) in AIX 5L Version 5.1 Communications Programming Concepts.