winsockets
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 分类:问答Socket transmit data but can't receive response
I am trying to implement UpNP in C++, I found a few sources on google but none worked. I found this one working (http://www.codeproject.com/KB/IP/upnplib.aspx) but it\'s for .NET, so I decided to snif[详细]
2023-03-06 17:18 分类:问答Using a TCP connection to GET data from a HTTP server, on rare occasion there's garbage data
I\'m writing a networked game in C++ using Winsocks 2.2, using Visual Studio 2010, and decided it would be a good idea to use my web-server to store a list of active servers for the game.When a server[详细]
2023-02-24 11:06 分类:问答How to get the ip address under Windows
all i already had a \"socketfd\", and i was wondering how to use it to retrieve the local ip address. under linux, i can do something like this(not exactly correct):[详细]
2023-02-13 03:36 分类:问答recv() until a NUL byte is received?
I\'m trying to receive a single packet at a time from the server, since packets are going too fast, and each is of undefined size, calling recv() with number of bytes to read will read the first packe[详细]
2023-02-11 06:01 分类:问答How to use data receive event in Socket class?
I have wrote a simple client that use TcpClient in dotnet to communicate. In order to wait for data messages from server i use a Read() thread that use blocking Read() call on socket. When i receive s[详细]
2023-02-02 19:32 分类:问答How to get domain name from Given IP in MFC (VC++)?
How to get domain name from Given IP in MFC (VC++) ? The code i am using is as below: #include \"stdafx.h\"[详细]
2023-01-25 06:56 分类:问答Scanning LAN game servers using winsock
I\'m trying to figure out how to use winsockets to be able to turn my game into a LAN-playable game. I\'ve read some winsockets documentation but I can\'t figure out how a client can get all the games[详细]
2023-01-06 23:36 分类:问答“谁拨小船行”上一句是什么?
沐瑜蓓 2022-05-18 06:09 开发者_如何学Go “谁拨小船行”上一句是:“不知池上月”,这是出自于 唐朝 白居易 所著的《六月三日夜闻蝉》。附《六月三日夜闻蝉》全文赏析六月三日夜闻蝉作者:白居易朝代:唐朝荷[详细]
2022-12-20 12:23 分类:问答