Question about TCP manuals

Hi everyone...I'm new to ruby and I'm looking for some good manual about TCP networking in Ruby. I've
a Programming Ruby book, but it doesn't contain enough informations I want. I've googled the web but
didn't see any full manual yet. I want to know such informations like for example: how to check in
my code, when the connection was closed by a foreign host etc.

Regards
Jacek

Jacek Olszak wrote:

Hi everyone...I'm new to ruby and I'm looking for some good manual about TCP networking in Ruby. I've
a Programming Ruby book, but it doesn't contain enough informations I want. I've googled the web but
didn't see any full manual yet. I want to know such informations like for example: how to check in
my code, when the connection was closed by a foreign host etc.

The best book out there is probably Unix Network Programming by Stevens. Ruby's socket library wraps each underlying system call with a ruby method. Now as you go up from BasicSocket/Socket to IPSocket/TCPSocket/TCPServer it all gets a little nicer and friendlier.

I have submitted some documentation (with examples) for the Socket library, but it has not been accepted or denied yet by the ruby-core group, perhaps if you give a description of what you're looking to do folks can steer you in the right direction.

Zach

"Jacek Olszak" <jacekolszak@o2.pl> writes:

Hi everyone...I'm new to ruby and I'm looking for some good manual
about TCP networking in Ruby. I've
a Programming Ruby book, but it doesn't contain enough informations I
want. I've googled the web but
didn't see any full manual yet. I want to know such informations like
for example: how to check in
my code, when the connection was closed by a foreign host etc.

Regards
Jacek

The programming language used there is C, but that is irrelevant since
it is covering the BSD socket API, the same socket API that comes
standard with ruby and is used by practically all OSes today.

YS.