March 2019
Beginner
490 pages
12h 40m
English
In this section, we will review how you can set up your own UDP client-server application with Python's Socket module. The application will be a server that listens for all connections and messages over a specific port and prints out any messages to the console.
UDP is a protocol that is on the same level as TCP, that is, above the IP layer. It offers a service in disconnected mode for applications that use it. This protocol is suitable for applications that require efficient communication that doesn't have to worry about packet loss. The typical applications of UDP are internet telephony and video streaming.
In this example, we'll create a synchronous UDP server, which means each request must wait ...
Read now
Unlock full access