What is an internet socket?
The Internet socket is a term used to identify a connection point that any computer software program can use to transfer data over the Internet. It is not a physical construct such as the power outlet, but instead is the concept of computer software. With such a socket, all necessary data can travel back and forth from the program running on one computer to the program running on the other; In many cases it is a client and a server. The term is also used to indicate the application programming interface (API) that computer programmers can use to create such network awareness applications that are able to send and receive data over the Internet. When the application on the computer wishes to send and receive data from a network connection, it asks the operating system to open the integrurnet socket. The socket is set consisting of a log information such as UDP (UDP) or TCP) as well as sending and receiving your computer addresses and port numbersOjení. It is also possible for an Internet socket to be created that bypasses the operating system and sends raw packets without first having the computer operating system to deal with more information about the socket.
As soon as it is commonly used on the Internet server, the server software starts and opens the listening socket. Because the server receives a data request, it creates a unique socket for the requesting client, which it then uses to transmit all required data. These types of connections are also referred to as sessions because the socket is closed by the client by the server. In this way, the server can create any number of simultaneous sockets with other clients, each with its own unique identifier, and provides data that is unique to each client.
As such, there are three general types of Internet sockets. One such type is the DataGram socket. This is a quick zdoHating a plinth that requires no additional communication to create a reserved connection before sending data. For this reason, they are often referred to as sockets without connection and use UDP as their transport protocol. They are something like a method of fire and involvement in the fact that there is no control of the sequence of packets or correction of errors.
Connection -oriented sockets, however, are called Stream socket, walking through several other steps to create communication connection between the client and the server. They use TCP or other protocol known as the power control protocol (SCTP). This type of Internet socket is more reliable and has fundamental resources such as Missing Packets.
One other unique type of Internet socket is used primarily for routing a computer network. This type of plinth skips the transport layer of the IP tray and instead transmits the packet from the network directly to the application with information about the socket still intact. Such raw drawers allow MNOHem faster delivery of packets to the application, because the computer operating system first does not get on the way with packets. Internet Control Message (ICMP) uses such raw sockets when one computer simply wants "ping" another.