Nt1330 Unit 5 Research Paper

Improved Essays
A socket is the one end –point of two-way communication link between two programs running over the network. This means the programs run on different computers, usually referred as the local and the remote computer. However, one can run the two programs on the same computer. Such communicating programs constitute a client/server application normally; a server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to make a connection request (Polam, 2014).
On the client- side, the client knows the hostname of the machine on which the server is
…show more content…
First appeared in early 1970’systems, There are two kinds of sockets:
1, the connection oriented socket based on TCP
2, connectionless sockets based on user Datagram Protocol (UDP).
*The TCP type sockets guarantee data arrives in the correct order, but the user Datagram protocol (UDP) does not.
One of the main differences between (” socket” and “server socket “) is;
* Socket implemented at the client side to send request to the port of the machine where the server socket is listing. But
*server socket implemented at the server side so that it can listen to the client’s and respond to them,
When we look at this two differently, the socket class placed on the client’s side, which is send request to the server side socket and waits for the response from the server. While the server socket placed in server side, which is sends requests to clients’ side socket and waits for response from client.
In censes, we need to make an object of socket class for networking application. While for server side, networking application server socket class is used. A method named server socket_ object. Accepts [] is used by server to listen to clients at a specific port

Related Documents