Maximum sockets per user
- Default value
- Parameter type
- Where set
- User 0 CCAIN parameters
- Related products
- Janus Sockets
- Before Sirius Mods 6.7
The SOCKMAX system parameter specifies the maximum total number of sockets a user may use at any time (one of these is reserved for the server socket number 1, whether the user is a server socket program or not). The default for SOCKMAX is 10, thus allowing 9 client socket numbers to be in use.
The minimum value for SOCKMAX is 2, and the maximum value is 88.
SOCKMAX affects storage allocation for each user who is using any sockets:
each such user has allocated
6 + (6 * SOCKMAX) bytes (rounded up to a multiple of 4).
In addition to this storage requirement are storage requirements for each open socket over a Janus Sockets or Sirius Debugger port, which increases the storage requirement by 960 bytes plus the value of the IBSIZE and OBSIZE parameters.
SOCKMAX may be reset on the
EXEC JCL statement or on user zero's parameter line.
- The SOCKMAX system parameter specifies the number of in-use
sockets a user may have at any time.
One of these is reserved for the server socket number 1, so there are
SOCKMAX - 1sockets available to each user to make connections on CLSOCK and DEBUGGERCLIENT ports. A RESET socket is included in this total if the application has not issued the $Sock_Close function for it.
- The SOCKPMAX port parameter specifies the number of OPEN sockets a user may have at any time for the particular CLSOCK or DEBUGGERCLIENT port. A RESET socket is not included in this total, even if the application has not issued the $Sock_Close function for it.