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.

[654 byte] By [saravananma] at [2007-11-27 3:10:31]
# 1
No. The OS will allocate the descriptor according to some internal policy. Why would you care what it is? and what's this question got to do with Java?
ejpa at 2007-7-12 4:00:27 > top of Java-index,Core,Core APIs...
# 2
On Unix (including Solaris) the socket descriptors are file descriptors. It would make wonder if not the next free file descriptor was used. But why does it matter?
BIJ001a at 2007-7-12 4:00:27 > top of Java-index,Core,Core APIs...