Discussion:
searching a class to use sockets
(too old to reply)
Larry
2010-01-17 17:28:24 UTC
Permalink
Hi,

I am studing how to create sockets by using the winsock2.h and ws2_32.lib
... I have to admit it is really hard to code something for the moment...is
there any good (free) class to deal with sockets ina simpler way? I would
like to create a tiny server which serves more clients at the same time...

thanks
Faisal
2010-01-18 06:17:14 UTC
Permalink
Post by Larry
Hi,
I am studing how to create sockets by using the winsock2.h and ws2_32.lib
... I have to admit it is really hard to code something for the moment...is
there any good (free) class to deal with sockets ina simpler way? I would
like to create a tiny server which serves more clients at the same time...
thanks
If your project use MFC, you can use CSocket or CAsyncSocket.
Cholo Lennon
2010-01-18 13:08:41 UTC
Permalink
Post by Larry
Hi,
I am studing how to create sockets by using the winsock2.h and ws2_32.lib
... I have to admit it is really hard to code something for the moment...is
there any good (free) class to deal with sockets ina simpler way? I would
like to create a tiny server which serves more clients at the same time...
thanks
Adding to Faisal's post: You can use boost::asio (it's free and
multiplatform, also it has a good documentation and examples)

http://www.boost.org/doc/libs/1_41_0/doc/html/boost_asio.html

Regards
--
Cholo Lennon
Bs.As.
ARG
Continue reading on narkive:
Loading...