c++ socket programming!!!

hi
please introduce me a good book for c++ socket programming.
is there c++ standard library for socket programming.
Hi once again Standard C++ fail us again on business-centric API ! Usually for Unix we will use <socket.h> and in Windows we will use <winsock2.h>

Ideally there should be a SAME API just like Java but sad to say it is not in Standard C++. You can take a look at Boost.org as a lot of initiatives done there later make it to the Standard C++ specifications.
sohguanh, calm down.

It's the same on Java because Java only runs on one machine, the Java Virtual Machine.
closed account (z05DSL3A)
+1 kbw

Have a look at the semi-official Boost libraries, where "to be" standards are matured and tested:

http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/reference/ip__tcp/socket.html

Mind that depending of your application you would prefer another class that already implements
some of the fuctionality you need, just use the search box in:

http://www.boost.org

Beware that the term socket is somewhat ambiguous, I have assumed you are talking about internet sockets (not unix sockets).

have a look at:

http://cplusplusworld.com/sockets.html
www.rites.uic.edu/~solworth/sockets.pdf

You will find good pointers there.

Cheers
Oops, I forgot. This is a very decent guide:

http://beej.us/guide/bgnet/

It is translated into several languages.

Cheers
thanks all
Topic archived. No new replies allowed.