Question about TCP manuals

J

Jacek Olszak

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



Regards
Jacek
 
Z

Zach Dennis

Jacek said:
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
 
Y

Yohanes Santoso

Jacek Olszak said:
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


http://beej.us/guide/bgnet/

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top