Low-level C / C ++ networking concepts for real-time programming?

I am very interested in real-time programming, and although I feel that I know a decent amount in terms of algorithms and data structures, I don’t feel that I know a lot about how to quickly get data on a computer to the process.

Will any of you be so kind as to point me to topics I could work on to help me? Most of my C books do not really touch networks, and my C ++ books consider networking as a main topic. For example, I would not have problems creating a UDP connection between two computers, but how could you make the connection more efficient?

Thank you in advance

+4
source share
3 answers

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.

+8
source

I recommend that you learn about networking in a Unix environment. Look for books on Unix Network Programming. It deals with a very low level. To write networking programs, you must use both the POSIX specification and the ANSI / ISO C specification. Both specifications intertwined the story, so this can be a bit confusing at first.

+1
source

I don’t know much about the network, I saved this book to read something TCP / IP interworking

0
source

All Articles