When I call recvfrom() on the blocking udp socket after sendto() call it returns 0. But when I call Sleep() function between them, recvfrom() returns the correct lenghth of the received udp packet.
So I am trying to build a simple text IM program to get into the wonderful world of networking. I have written 2 programs using Winsock 2.0 with C++: a server and a client. I have specified a UDP conn
My application needs to liste开发者_运维技巧n for keyboard input from user from command line as well as listen for data on sockets simultaneously in a single loop. This application currently runs on l
I am creating a client server app using a simple socket to transfer Protocol Buffer objects between C++ and Java. I have it created on the Java side both as the client and receiver. I even got the Jav
On unix everything is a file approach of function read(), write(), close() is not supported on Win32.
Is there a way to determine how many packets where received while using recv() with Winsock? I am looking for a solution to implement at the client, without开发者_开发百科 special requirements on the
i am using Winsock2 in conjunction with overlapped I/O. This means i am calling WSARecv with a WSAOVERLAPPED structure and later i wait with WSAWaitForMultipleEvents for data.
I am developing a RTSP Source filter in C++, and I am using WINSOCK 2.0 - blocking socket. When I create a blocking socket, I set its SO_RCVTIMEO to 3 secs like so:
i am making a program that sends a string from a Java client to a C server using WinSock2. I am using DataOutputStream to send the data through the socket.
I am Developing a chat system that consists of multiple clients and a server. The clients should开发者_JAVA百科 discover the server by sending a broadcast message, which the server will respond to, s