Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
103 views

So I am working with a windows IO Completion Port to implement some sort of IO event loop that keeps track of IO operations in a client/server model. I am heap allocating data for each IO operation, ...
void's user avatar
  • 13
0 votes
1 answer
65 views

On Windows Server 2022 I'm running a custom HTTPS server (part of a larger app). The service binds, listens and then accepts on port 81 for a while and netstat -abn shows: TCP 0.0.0.0:81 ...
DougN's user avatar
  • 4,707
0 votes
1 answer
93 views

I am initially getting a WSAEWOULDBLOCK from a call to connect(). Afterwards I do a select that socket included (waiting for process to complete ) and still get a zero Here is my code: return_code = ...
Joe Reichman's user avatar
0 votes
0 answers
33 views

i want to send data via UDP raw sockets with Winsock. I already implemented that and it is working fine, however, at the moment, i'm using a hard-coded source IP, which is the local IP of my WiFi ...
Sonny86's user avatar
  • 21
0 votes
0 answers
78 views

I have a TCP server that can accept connections and send a response. When a client connects to the server from the computer where the server is running, I need to know the name of the process from ...
Joe J's user avatar
  • 1,349
1 vote
1 answer
93 views

I have FPGA device which is waiting for UDP packet "FFFF" on port 1000, then answers also with UDP "FFFF". This code works fine, I see incoming "FFFF" packets on my JTAG, ...
MrLeyt1125's user avatar
2 votes
1 answer
88 views

When using Winsock with TCP connections (SOCK_STREAM, connection-oriented), calling WSAAsyncSelect puts the socket into non-blocking mode. A call to connect at that point will generally return with ...
Greg Kennedy's user avatar
0 votes
1 answer
285 views

I have a thread which repeatedly calls AcceptEx on a listening port until it's told to exit, at which point it attempts to cancel the last initiated accept. Note: To clarify, the TASSERT & ...
Bwmat's user avatar
  • 4,724
0 votes
1 answer
62 views

I’m developing a Windows IOCP server and need to accurately detect when a client enters a zero window state. Specifically, I want to understand how the server can identify this condition when ...
Baba's user avatar
  • 15
0 votes
0 answers
154 views

I am working on a video game and for it I am trying to add online multiplayer. I created my own winsock wrapper file to handle clients and servers, and it functions for LAN connections. However when ...
Ian8tor's user avatar
  • 11
0 votes
0 answers
57 views

I have a winsock2 client/server application that hangs when a client that has already connected to the server on one computer tries to connect to the server again from another computer. The logic in ...
defa0009's user avatar
-1 votes
1 answer
110 views

I'm trying to make p2p application with login function. This application will send commands to server by console input and i'm tried to implement this but it finished on 10038 error which means that i'...
sech1p's user avatar
  • 25
0 votes
0 answers
52 views

I'm trying to find out how many requests per second to allow to our old Winsock 2.2 server. Currently, it's on a dev server with an i5 4 core CPU. I have it set up to run 2 threads per processor so 8 ...
defa0009's user avatar
0 votes
0 answers
106 views

I have a small lab based Active Directory environment with 3 devices. They have the following OS installed. DC running Windows Server 2022 hosting my AD server. 1.Endpoint running Windows 10 Pro (22H2 ...
SermonJr's user avatar
1 vote
0 answers
69 views

I came across the usage of select(...,fd_set,...) in winsock to check on multiple sockets at once without blocking the application. But it needs the input fd_set. this is what fd_set looks like: https:...
bangingmyheadontable's user avatar
0 votes
1 answer
506 views

I am programming a code that sends a text message to a specific port using UDP. I initialize IP header and UDP myself. My problem is that the finished UDP packet is corrupted and Wireshark doesn't ...
ni1's user avatar
  • 25
0 votes
1 answer
105 views

The function SentMessage always outputs 100, even if the value has changed. I tried to create pointers, pass p1 in different ways, but it always output 100. How can I read p1 in thread? Hero p1 = { &...
Fuji's user avatar
  • 13
0 votes
0 answers
49 views

I have been pulling an MFC-based application out into a purely console (standard windows libraries) application, and it has been mostly painless (if not tremendously tedious). I am currently trying to ...
LazyBear's user avatar
  • 353
0 votes
0 answers
79 views

The execution of the server code reaches the accept() function, and the GUI thread takes control, it is very important to me that the acceptSocket is structured because by calling SendMessage() ...
Danil0's user avatar
  • 1
0 votes
1 answer
84 views

Platform: Windows 10 x64 MingW64 with Visual Studio 2022 I am writing a program to add timeout function to sockets. Below is a simplified version of the code. As shown in the following code,...
S-N's user avatar
  • 402
0 votes
0 answers
65 views

I'm caught by a strange problem. A listening QTcpServer that is working normally suddenly stops accepting new connections (qBittorrent webui stop working). I did a little digging into Qt's source and ...
isudfv's user avatar
  • 527
0 votes
0 answers
33 views

These are my header files (on Windows): When I compile the program, this error will be on the display: 'inet_pton' was not declared in the scope I try to update my mingw but it's useless. By the ...
Jiaqi Yu's user avatar
1 vote
1 answer
142 views

I try to Winsock kernel and write a test project that set up the wsk environment, but the error occured while building project the visual studio can not link the definitions of wsk functions. I ...
Levanlen's user avatar
-1 votes
1 answer
161 views

Last year, I finally migrated my development environment from Win10x64 to Win11x64. The old Win10 computer has been powered off, except for the rare times I needed to look for an old file on it. The ...
Steve Valliere's user avatar
1 vote
0 answers
123 views

kind people. My computer has multiple network interfaces( Intel I210) and runs Windows 10. I use TCPView to monitor the TCP connections established between Putty SSH client and Linux during the ...
user24091515's user avatar
0 votes
0 answers
68 views

I tried to make a server socket for connecting client sockets via internet. I found nothing in google. Unfortunately, it works only with my local network. It responds when I connect to 127.0.0.1 ...
Sasha Tim's user avatar
1 vote
2 answers
280 views

I am using the Windows OS and am coding in C, currently. I am a complete beginner in socket programming, and have this following piece of code that is returning unwanted values. (MAXLINE = 4096), and ...
NWA_fan's user avatar
  • 13
2 votes
0 answers
244 views

I have run into the issue of Windows sending out messages from the wrong network adapter when there is more than one possible network adapters on the computer. Specifically, I have a computer ...
mochiman's user avatar
0 votes
1 answer
85 views

I'm starting with sockets on Windows in C, and I'm trying to understand the use of pointers in C and get a clear idea of why some variables are pointers. In this code: int sock; struct sockaddr_in ...
martia road's user avatar
0 votes
0 answers
136 views

I want to use RIO to get notifications from ConnectEx, but I didn't include RIOConnectEx in RIO_EXTIONS_FUNCTION_TABLE. I don't know how to get notifications about ConnectEx connections in ...
uuks's user avatar
  • 1
0 votes
0 answers
43 views

In the AcceptEx part of the code, the address information is written to the buffer normally, but when I check the lpfnAcceptEx part by calling GetAcceptExSockaddrs later, the local and remote ...
김형진's user avatar
0 votes
1 answer
98 views

I have two functions in C that involve communication between a master and slave socket. The master sends a timestamp to the slave using the sendSyncMessage function, while the slave receives it using ...
Varun Bhat's user avatar
0 votes
1 answer
117 views

I have a .Net TCP client which connects to Telnet server (currently, for testing, via localhost): tcpClient.ReceiveTimeout = 300; tcpClient.SendTimeout = 300; tcpClient.NoDelay = true; LingerOption ...
jackhab's user avatar
  • 17.9k
1 vote
1 answer
343 views

I'm doing some testing with a TCP client on Windows 10 (10.0-19045) but due to firewall restrictions I need to run my experiments from a local port < 1024 (not negotiable). I thought that this was ...
Roland Mainz's user avatar
0 votes
0 answers
208 views

I'm revisiting winsock after all these years with fresh eyes and can't seem to understand why SOCK_STREAM and IPPROTO_TCP are both necessary to specify in the pHints parameter of getaddrinfo: INT ...
Edward Severinsen's user avatar
3 votes
1 answer
361 views

Does Win32 getaddrinfo() use C:\Windows\System32\drivers\etc\hosts? We want to use C:\Windows\System32\drivers\etc\hosts to specify IPv6-only addresses (which are NOT part of the DNS), and let our ...
Roland Mainz's user avatar
1 vote
1 answer
107 views

Does Winsock2 have an API to define which TCP port a client uses to connect() to a server? We need to connect() to a UNIX server, which only responds if the client TCP port is < 1024 (Reserved ...
Cedric Blancher's user avatar
0 votes
1 answer
230 views

I have some clients and a server on windows (I am using winsock for both client and server), the server is waiting for clients to get connected to it via tcp, while waiting for almost 5 minutes after ...
Anchit Rana's user avatar
0 votes
0 answers
146 views

I wonder which data type is the most suitable for representing bytes I send via Windows API winsock. I'm currently working on receiving and sending data frames on network sockets, as well as a CAN ...
le1nax's user avatar
  • 37
0 votes
1 answer
468 views

I'm trying to create a TCP server in C++. Below is my current code following Beej's tutorial: #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <ws2tcpip.h> int main(){ ...
Nathan Heffington's user avatar
0 votes
0 answers
102 views

I have been trying to create a DNS query in C but I am having trouble managing different data types and pointers, I have the header build in the first position of a variable called buf. Now I want to ...
laramruma's user avatar
0 votes
1 answer
67 views

Before I start I want to clarify that I'm using the socket code from microsoft as a template. https://learn.microsoft.com/en-us/windows/win32/winsock/complete-client-code I want to talk to a server to ...
Fardin Mahid's user avatar
0 votes
0 answers
156 views

My program needs to be able to close and later re-open a UDP socket to receive data. The socket will always be using the same port and INADDR_ANY. When I try to re-open the socket, I am always ...
Steve Valliere's user avatar
0 votes
1 answer
180 views

I can no longer create a server listening on port 64951 or 64952 under Windows 10. I got an exception on my C# program when I tried to bind to 0.0.0.0:64951. Same on a C++/Qt program, the error is : '...
Aminos's user avatar
  • 871
0 votes
0 answers
333 views

I've been trying to increase the size of the socket buffers (specifically the receive side buffers for UDP packets) using the winsock2 setsockopt function as such: u_long iMode(1); handle = socket(...
Valdez's user avatar
  • 86
1 vote
1 answer
172 views

I'm porting my program from Unix to Windows, and I have a problem with the recvfrom() function to accept a packet. I haven't written anything with Winsock until now. I think I've done everything, ...
lomaster's user avatar
0 votes
0 answers
55 views

I'm a beginner in C++, and I'm building a program to transfer files and images. I have a simple code to send pictures over TCP taken from Sending Picture via TCP. But my images came broken, with ...
user avatar
0 votes
0 answers
115 views

I have C++ code that uses GDI to take a screenshot of the environment, and GDI+ to compress it into a JPG. I want to send the image over TCP, and for that I need to know where the byte array that ...
user avatar
1 vote
0 answers
108 views

I have two programs. They are connected via TCP, localhost, and running on the same machine. First is sending a message via send(), and second is receiving via recv(). When second program is ...
Edgar Khachatryan's user avatar
0 votes
1 answer
683 views

I recently received a task to receive TCP data as soon as possible on Windows. After checking a lot of information, I noticed that Registered I/O (RIO) Sockets may be a good choice, because it may ...
Hongle Wen's user avatar

1
2 3 4 5
47