Just to let you know: in real time , it means that you have a time limit for your application, t necessarily means “fast” or “fast” or “effective”. A real-time operation can take 1 hour, but it will be real time, as long as it is limited to no more than 1 hour.
As for networks, this in itself is not real-time, since you cannot control the other side. There are various “real time” protocols that handle this limitation in various ways (since you have time limits for applications such as clock synchronization, video / audio streaming, etc.), so you need to delve into these specific protocols - of necessity. One example is RTP . You can see that this is rather complicated, not just a UDP message written in an “efficient” way.
General network programming is system dependent, but you can start with UNIX networking and BSD Sockets to get this idea.
source share