2: Application Layer6 Socket programming with TCP Client must contact server r server process must first be running r server must have created socket (door) that welcomes client's contact Client contacts server by: r creating client-local TCP socket r specifying IP address, port number of server's socket r when client creates socket: client TCP establishes connection to server TCP r When contacted by client, server TCP creates new socket for server process to communicate with client's socket m allows server to talk with multiple clients m source port numbers used to distinguish clients (more in Chap 3) TCP provides reliable, in-order transfer of bytes ( pipe ) between client and server application viewpoint
{}