I am searching cross-platform techniques to write client-server applications on Mac. I used BSD sockets, Cocoa APIs but I need to know which would be better at performance.
I'm writing an application both on Linux and Solaris 10. It uses local sockets for some internal communications. On Linux an open, exchange one short message & close cycle takes about 10us elapsed time. On Solaris 10 x86, it takes about 400us.
This is such atrociously bad performance, that I think I might have done something fundamentally wrong.
I have written network applications based on BSD sockets on an embedded platform. Now I want to port my application on to POSIX platform (Linux). Does Linux providing any kind of wrapper which I can use for porting my application.