Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
97 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
92 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
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
2 votes
1 answer
80 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
55 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
54 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
0 votes
0 answers
46 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
1 vote
0 answers
67 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
100 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
75 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
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
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 vote
0 answers
118 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
1 vote
2 answers
275 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
0 votes
1 answer
78 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
40 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
115 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
0 votes
0 answers
205 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
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
0 answers
142 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
0 answers
100 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
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
0 answers
331 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
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
1 vote
0 answers
106 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

1
2 3 4 5
47