BasicSocket::setsockopt() what do the different constants mean

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/BasicSocket.html#method-i-setsockopt

When I call the setsockopt, what do the different SOL_ and SO_ constants
mean? The explanation on the ruby docs doesn’t really tell me what is
being set.

Thanks for the help!

On 10/22/2012 02:08 PM, max herrera wrote:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/BasicSocket.html#method-i-setsockopt

When I call the setsockopt, what do the different SOL_ and SO_ constants
mean? The explanation on the ruby docs doesn’t really tell me what is
being set.

Thanks for the help!

Have a look at these and see if they clear any of it up for you.

man setsockopt
man 7 socket

Sam

max herrera wrote in post #1080634:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/BasicSocket.html#method-i-setsockopt

When I call the setsockopt, what do the different SOL_ and SO_ constants
mean? The explanation on the ruby docs doesn’t really tell me what is
being set.

This book is the standard reference:

http://www.amazon.co.uk/Unix-Network-Programming-Addison-Wesley-Professional/dp/0131411551/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs