I think I\'m in a problem. I have two TCP apps connected to each other which use winsock I/O completion ports to send/receive data (non-blocking sockets).
On Windows I/O completion ports, say I do this: void function() { WSASend(\"1111\"); // A WSASend(\"2222\"); // B
I am creating a UDP socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP) via Winsock and trying to recvfrom on this socket, but it always returns -1 and I get WSAEINVAL (10022). Why?
I have created a socket using the following lines of code and i get a valid socket and connection is established between the client and server machines. Is there a possibility that the socket becomes
Since I\'m not a native English speaker I might be missing something so maybe someone here knows better than me.
I\'ve a select based server. Sockets are in blocking mode,but for select() function I\'m using 250 ms. timeout.
[I\'ve followed the suggestion to use Winsock.pas, but it still writes garbage -- although the sin_family field has changed to a new garbage value.]
HI all. Here is the scenario. I have port 8888 for my program to use. I build a TCP and a UDP listener on that port. (This can do, c# allows, because they are two different protocols)
I\'m looking for a basic tutorial for connecting to a domain and downloading the index file . Anyone that can link me a good example or anythin开发者_Python百科g.Check out libCURL it will do this for
Imagine you have a server which can handle only one client at a time. The server uses WSAAsyncSelect to be notified of new connections. In this case, what is the best way of handling FD_ACCEPT message