Socket descriptor values returned by socket()


Is the socket descriptor value returned by socket() constant for constant arguments? Or is it just an available descriptor value?

Is there anyway this value can be predicted?

It would help if someone could help me with the question and if possible point me to extra reading that could clear up this topic for me.

On UNIX/Linux it is usually the next available file descriptor the creating process has in its allotted group of file descriptors.

I think the best book is "Unix Network Programming, Volume I - 3rd Edition" by Stevens.

ISBN: 0-13-141155-1
Topic archived. No new replies allowed.