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 am searching cross-platform technique to write client-server application on MAC. I used BSD sockets, Cocoa APIs but I need to know which would be better at performance ?
Any suggestions are welcome.
I'm writing an application which involves passing file descriptors between two processes. I'm using unix domain sockets' sendmsg() and recvmsg() to do the same by passing FDs as ancillary data.
What I found in my tests is that the performance of sendmsg() for connection-mode SOCK_SEQPACKET sockets is way better than that of connection-less SOCK_DGRAM sockets.