Ruby BasicSocket Functions

EditRocket provides the following information on BasicSocket functions in the Ruby source code builder.

getsockopt" getsockopt(level, optname) - Gets a socket option. These are protocol and system specific, see your local sytem documentation for details. The option is returned as a String with the data being the binary value of the socket option.

recv_nonblock(maxlen) - Receives up to maxlen bytes from socket using recvfrom(2) after O_NONBLOCK is set for the underlying file descriptor. flags is zero or more of the MSG_ options. The result, mesg, is the data received.

setsockopt" setsockopt(level, optname, optval) - Sets a socket option. These are protocol and system specific, see your local sytem documentation for details.