A bind with a port of zero will bind you to a free port. Is this portable?

It's universal as far as I know, but I can't find any text in the standards that says it is. An alternative that might be more portable is using getaddrinfo with null service name pointers and the AI_PASSIVE flag. This is guaranteed to give you an sockaddr you can bind to.

It's also the correct way to let the administrator choose which local ip (v4 or v6) address to bind to.

It's certainly "standard" in the 4.2BSD socket API from which most every other implementation is derived, but I'm not aware of any formal specification that actually says so.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions