Hi why each none blocking server is build with C ? cant i build it with c++ ?
A:
Since you can call c functions from c++, yes. I've used non-blocking sockets in c++ and so have a lot of other people.
dutt
2010-10-13 08:52:31
who did you use it ?
2010-10-13 11:27:03
why did I use non-blocking sockets or why did I use c++?
dutt
2010-10-13 11:33:00
A:
There is good library - asio (or boost.aiso). Maybe it's the best framework for asynchronous operations in C++.
Abyx
2010-10-13 08:54:06
A:
Of course you can. Why wouldn't you? In windows you can use the TcpListener class to do a non blocking accept with the BeginAcceptTcpClient method. http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.beginaccepttcpclient.aspx (Has example code)
RonaldV
2010-10-13 08:54:18