![]() An endpoint usually includes a port number and an IP address. It has a port number, which the TCP/IP layer can use to identify the application that receives the data. Definition of a socketĪ socket is a communication endpoint that serves as a link between two machines on a network. Client and server communicate by writing to and reading from the socket connection. ![]() To demonstrate sockets further, we shall use the Client/Server architecture. UDP (User Datagram Protocol) is the only option for connectionless protocol. ![]() ![]() In our case, we will use TCP/IP which is a connection-oriented protocol.īefore exchanging data, computers must establish a link that is for connection-oriented protocols. Connections can be made using either a connection-oriented protocol or a connectionless protocol. Socket programming is a means of communicating data between two computers across a network. ![]()
0 Comments
Leave a Reply. |