winsock2
recvfrom() returns 0 after sendto() call on the blocking udp socket
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.[详细]
2023-03-31 18:56 分类:问答Winsock 2.0 Will Not Connect to Public IP Address
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[详细]
2023-03-31 03:22 分类:问答Windows listen for socket and command line input simultaneously
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[详细]
2023-03-26 09:31 分类:问答How to send Protocol Buffer object using Winsock2?
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[详细]
2023-03-26 00:58 分类:问答Determine between socket and fd
On unix everything is a file approach of function read(), write(), close() is not supported on Win32.[详细]
2023-03-14 20:42 分类:问答Determining Packets Received with Winsock2
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[详细]
2023-03-13 11:54 分类:问答Winsock2 data loss when in debugger
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.[详细]
2023-03-12 05:16 分类:问答WINSOCK - Setting a timeout for a connection attempt on a non existing IP?
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:[详细]
2023-03-09 13:31 分类:问答Sending data from Java to C using socket programming
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.[详细]
2023-03-06 23:53 分类:问答Chat Client Server across the network using Winsocket 2 and C++?
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[详细]
2023-03-06 09:28 分类:问答