SCOUG-HELP Mailing List Archives
Return to [ 25 |
July |
2004 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================
Harry Motin wrote:
>
> I don't fully appreciate what a socket means, but I'll look it up.
TCP keeps a spreadsheet of all your connections with columns for
different things such as the IP of the foreign machine. Each row of the
spreadsheet is a single connection, and these rows are called
"sockets". That's all that a socket is. It's a row in a spreadsheet.
When your program tells TCP that it wants a connection to the Internet,
TCP looks at its spreadsheet, finds an unused row, and returns that row
number to your program with a "your new connection will keep all its
information in row (socket) number 1357" message. From that point on,
your program can do anything it wants with the connection but you
include the row (socket) number in each call to TCP so that TCP knows
which row in its spreadsheet has all the information.
When you first get a row (socket) in the TCP spreadsheet the entries are
all blank (zero). After you open the socket, maybe change a few
parameters (the info is kept in various spreadsheet columns), connect to
some other machine, send some bytes, then those entries aren't blank
(zero) any more. "netstat -s" reports the info in the TCP spreadsheet;
if an entry is blank (zero) then that's what netstat -s displays.
- Peter
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 25 |
July |
2004 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|