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

How to retreive IP interface DNS suffixes using winsock2? [duplicate]

In Windows, for a interface, you can set DNS suffixes to add to queries. How do one retrieve the settings dom1.com, dom2.com using winsock2? If I call GetAdapterAddresses the IP_ADAPTER_ADDRESSES_LH ...
leiflundgren's user avatar
  • 2,988
-3 votes
1 answer
81 views

How can I filter incoming connections?

I have this select waiting for data in the socket buffer. When there is data in the buffer, I launch a thread and accept the connection. while (!InterruptWaitForConnections) { const int status = ...
IVANEZEDITIONS's user avatar
1 vote
0 answers
78 views

CUDA 12.8 causes #error: MFC requires use of Winsock2.h in MFC project, but works fine with CUDA 12.4

I'm working on a Windows MFC GUI application that uses CUDA for high-performance image processing. Previously, I was using CUDA 12.0 on a system with an RTX 3090 (Ampere), and everything compiled and ...
powermew's user avatar
  • 153
-2 votes
1 answer
52 views

C++ Winsock UDP Port Wont Bind

I'm writing a bit of code that can listen for UDP messages via Winsock. The port bind works on local loopback (127.0.0.1) but when I try to change to any other IP the bind fails. Is there something I'...
MaxA's user avatar
  • 13
0 votes
1 answer
99 views

Running the Microsoft Winsock Client and Server Code Sample

I've downloaded and successfully compiled the Microsoft Winsock Client and Server Code Sample from here. This client server combination application both work just fine running on the same computer. ...
blogger13's user avatar
0 votes
1 answer
74 views

Socket in C++ : Handle multiple concurrent request in Windows OS

I try to build a multi thread server so when there is multiple concurrent request, the server can handle them at the same time. But, my code still require for waiting first request to be done before ...
randomize_atk's user avatar
1 vote
1 answer
68 views

WinSock2 accept function causes access violation when used in multiple threads of one process

I am working on designing libraries in C and C++ for my company's proprietary language through ffi. The two libraries which are causing the problem related to the title are the threads and sockets ...
JSGuy's user avatar
  • 116
1 vote
1 answer
173 views

Allow Type of Service / DSCP Marking on Windows for a network socket

I'm looking to programatically mark the Type of Service / DSCP byte in packets from a network socket. The current implementation in C# is below: UdpClient udpClient = new UdpClient(); string ...
jlwilson's user avatar
0 votes
0 answers
41 views

How to handle if the fd has read and write at the same using select in winsock?

I saw some code examples to explain select() can handle multiple events at the same time as below: FD_SET readfds; FD_SET writefds; FD_SET exceptfds; FD_ZERO(&readfds); FD_ZERO(&writefds); ...
just_code_dog's user avatar
2 votes
0 answers
122 views

Unable to recv data that recv(PEEK) returned

I was debugging some 64 bit, native C code using WinSock2 for TCP and after eliminating all of the errors I expected, I found out that WinSock2 was doing something I did not expect. Simplified for ...
Steve Valliere's user avatar
2 votes
1 answer
99 views

does windows networking code break the strict aliasing rules?

As I was told here: can you typecast an int into 4 chars using structs?, typecasting a struct into another struct pointer is against the "strict aliasing rules". But I think that in C ...
bangingmyheadontable's user avatar
0 votes
2 answers
79 views

what is the purpose the asterix after SOCKADDR in: bind(ListenSocket, (SOCKADDR*) &s, sizeof(s));

I haven't found an explanation to why you would put an asterix after a variable. This is the example: int main(){ WSADATA Winsockdata; WSAStartup(MAKEWORD(2,2), &Winsockdata); int ...
bangingmyheadontable's user avatar
0 votes
2 answers
262 views

Error transfering files to Android using Windows C++ Bluetooth OBEX socket

OBEX is probably the most commonly used technique to transfer files over devices that support Bluetooth. On the contrary , with being the most common , it is not very well documented how this thing ...
CoderBittu's user avatar
0 votes
0 answers
61 views

QTcpServer stop accepting new connections

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
  • 467
1 vote
0 answers
25 views

Implementing a Matlab Reader using winsock2 and DLL library

I am trying to interface Matlab with a C code that I used to read data through UDP. I am using the winsock2 library, and compiling the C code into a DLL file for it to be loaded into Matlab. My C code ...
Tamim Akhtar's user avatar

15 30 50 per page
1
2 3 4 5
67