[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
Socket
TCP Socket/Connection [/purple]

A TCP connection is done with a 3-way handshake between a client and a server. The following is a simplified explanation of this process.
              • The client asks for a connection by sending a TCP segment with the SYN control bit set.
              • The server responds with its own SYN segment that includes identifying information that was sent by the client in the initial SYN segment.
              • The client acknowledges the server's SYN segment.

The connection is then established and is uniquely identified by a socket or socket pair.
(destination IP address, destination port number)
(source IP address, source port number)
During the connection setup phase, these values are entered in a table and saved for the duration of the connection.


last edited (November 5, 2002) by chetan, Number of views: 3360, Current Rev: 1

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.