When a process communicates with another, reliability is not always the main criterion to use when deciding the communication mechanism. Sometimes, what we need is fast communication without the burden or the connection, flow control, and all the other controls that the TCP protocol implemented to make it reliable. This is the case for video streaming, Voice over Internet Protocol (VoIP) calls, and many others. In this recipe, we'll learn how to program UDP code that makes two (or more) processes communicate with each other.
Learning to use UDP/IPÂ to communicate with processes on another machine
How to do it...
We'll develop two programs, a client and a server. The server will start, bind the...