C network programming?

Which libraries are the best (in terms of performance) for network programming in C on windows and UNIX?

I am very interested in high-frequency trading.

I heard about BSD and POSIX, but I was not sure if there are faster performance-specific libraries?

+4
source share
2 answers

The fastest way is to use the OS network functions: socket() , setsockopt() , connect() , listen() , send() , recv() , etc. etc.

There are slight differences between them on several OSs.

To handle this, there are wrappers around them in several libraries, for example. in Qt (at least IIRC). I don’t think that something will slow down noticeably if you use them ...

+6
source

How about ZeroMQ. [Http://www.zeromq.org/] [1]

It is faster, easy to code, and can also be used as a message queue.

0
source

All Articles