Socket number allocation in ascending order
We have a C++ application developped for solaris platform, which(acts as a Gateway) accepts the TCP requests and forward the requests to UDP server and vice versa.
When there is new request from TCP, the new udp (client)socket connection is created to the UDP server and forwards the request. The client socket connection is closed after receiving the complete response for the request.
The socket descriptor is allocated when we call the socket system call, and the next available socket descriptor will be assigned.
My question is, can we tune any of the OS parameters to allocate the socket descriptors in a ascending order.

