| United States-English |
|
|
|
![]() |
NetIPC 3000/XL Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 NetIPC IntrinsicsIPCCREATE |
|
Creates a call socket for the calling process.
The IPCCREATE intrinsic creates a call socket, returning a call socket descriptor. A call socket descriptor is an identifying number which may be used in other NetIPC intrinsic calls. A process may own a maximum of 64 (call and VC) sockets. If a socket has been given away (via the IPCGIVE intrinsic), it is included in this total until another process takes it (via IPCGET). Only the socketkind and calldesc parameters are required. Condition codes returned by this intrinsic are:
IPCCREATE runs in waited mode. It does not return until the request is completed. The following Table 3-5 “IPCCREATE Protocol Specific Parameters” outlines parameters that are specific to the particular protocol you are accessing. Table 3-5 IPCCREATE Protocol Specific Parameters
For direct access to X.25, the protocol parameter must be 2 (X.25). The opt parameter network name must include the X.25 network NI name. The opt parameter address option (code 128) is used to contain the protocol relative address of the source socket. X.25 compares the protocol relative address contained in an incoming call (in the CUD field) to the protocol relative addresses assigned to all X.25 call sockets at the source sockets' destination. If the protocol relative address of the source socket matches the incoming call's address (CUD) the call is routed to that socket. If no match is found, the incoming call is routed to the catch-all socket if one has been defined. If the CUD address does not match any of the call sockets and no catch-all socket has been defined, the incoming call is cleared. the cause field of the clear packet is set to 0 and the diagnostic is 64. The catch-all socket can be defined by setting the opt protocol flags catch-all socket flag (bit 2). Only one catch-all socket can be defined per directly-connected network. The catch-all socket and address option (protocol relative address) only apply to switched virtual circuits (SVCs). Common errors returned by IPCCREATE in result are:
A complete table of SOCKERRs is included in Appendix C “Error Messages” The following are HP 3000 to HP 1000, HP 3000 to HP 9000, and HP 3000 to PC programming considerations for this intrinsic: TCP protocol address — Although the ranges of protocol addresses for each computer system are different, the recommended range for cross-system user applications is from 30767 to 32767 decimal (%74057 to %77777). |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||