N
Nasir Khan
[Note: parts of this message were removed to make it a legal post.]
We can set socket options using setsockopt on BasicSocket, where can I get
various constants SOL_ constants such as Socket::SOL_SOCKET etc?
I am unable to find them in rdoc.
Also while writing a TCP client to a non Ruby (but non blocking) server
while I write on the socket using socket.write <string> I am not getting
anything on the server till I do socket.close.
socket.puts <string> works fine but has an additional newline in the message
which I do not want.
Any pointers in both of these questions will be greatly appreciated.
Thanks
Nasir
We can set socket options using setsockopt on BasicSocket, where can I get
various constants SOL_ constants such as Socket::SOL_SOCKET etc?
I am unable to find them in rdoc.
Also while writing a TCP client to a non Ruby (but non blocking) server
while I write on the socket using socket.write <string> I am not getting
anything on the server till I do socket.close.
socket.puts <string> works fine but has an additional newline in the message
which I do not want.
Any pointers in both of these questions will be greatly appreciated.
Thanks
Nasir