views:

316

answers:

3

Hey everyone. I'm planning on writing a socket server in C++ running on a Mac. I've been searching through a great portion of the internet without any results. Anyone knows where to start? Or even got a basic source code? Much appreciated.

+1  A: 

http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/

The above may be a good place to start - good easy intro to the sockets API with code examples.

Mitch Flax
+1  A: 

i think the ASIO Library is platform independent enough for that.

Look here: Boost Asio Asio Only

Stupid2.de
A: 

Given that the mac has a unix-oid back-end (derived from the BSD family) any unix resource like Beej's guide to sockets should be applicable. Also, a unix network programming book like the one written by the late W. Richard Stevens is a good resource, His books on the subject are amongst the best in print and regarded as classic works on the subject.

ConcernedOfTunbridgeWells