Questions tagged [windows-socket-api]
25 questions
0
votes
1 answer
Unable to GetUnicastIpAddressEntry after CreateUnicastIpAddressEntry
Background:
I am trying to get up to speed on using RFC7217 compliant ipv6 addresses. To that end I have written code that creates a valid route-able ipv6 address like 2600:8806:2700:115:c4a3:36d8:77e2:cd1e. I know I need to enter the new address…

rtischer8277
- 496
- 6
- 27
0
votes
2 answers
Using a Socket API in SQL CLR
I'm trying to use a third-party API that is a socket based API with SQL CLR and vb.net. I know how to do this with REST APIs, however, I cannot figure out how to get started with a Socket API.
Does anyone have any references or a very basic "GET"…

ptownbro
- 1,240
- 3
- 26
- 44
0
votes
1 answer
Loop won't stop with Thread and CancellationToken
I'm working with a Windows socket application using async callbacks. If I use Thread to start _StartListening, when I call StopListening, the loop still stops at allDone.WaitOne(). But the Task version will be OK.
What's the difference?
My code is…

0x8A63F77D
- 5
- 3
0
votes
2 answers
WSACleanUp causes an exception
My app can switch between Serial and Socket connections, but neither can be open at the same time. So when I try to switch between a Socket to Serial, I delete the Socket connection.
The socket based object uses a private class called UsesWinsock (a…

graham.reeds
- 16,230
- 17
- 74
- 137
0
votes
1 answer
udp data not recieved in windows socket program
I am new to windows socket programming. I have a device which gives udp data through a port, ipv6 protocol based. I am trying to capture this in a console application written in visual studio in Windows 7. Socket creation and bind are successful but…

Rouf
- 1
0
votes
1 answer
How to find socket fds opened by a process in windows
I have a client process running in windows (win 7/win 2008 server). The task is to enable keepalive for one of the socket it opened to get connected with a server.
To make this connection i'm using windows API (connection to MSSQL server), from…

JOE
- 77
- 2
- 10
0
votes
0 answers
Call a CygWin function while still calling native Windows functions by default
I'm programming a server in Windows. I wanted to accept multiple connections on the server so I figured I could use CygWin's fork(). So I added the call to fork(), but ran into errors.
I realize these errors are caused by the fact that I want to…

DEADBEEF
- 525
- 1
- 5
- 19
0
votes
1 answer
connection between windows and Linux sockets in c
I am using the socket module in python to send commands to my raspberry pi to turn GPIO pins on and of.
I am switching to C, where I will use winsock.h and winsock2.h to create the server on my PC and sys/socket.h to create a client on the…

Rose White
- 21
- 1
- 6
0
votes
3 answers
x86 WinAPI - I don't understand how some function arguments are referenced in my program
I have wrote a c program that uses the WINAPI library (specifically WSA - Sockets) and instead of compiling the source code asked the compiler to emit assembly source instead to study how it works on the lower level.
When coming across this line…

Jebathon
- 4,310
- 14
- 57
- 108
-1
votes
1 answer
C winsock function to send all message data
I'm writing a server in c using WSA that will handle multiple clients. The protocol is something I defined on my own, and the part I'm having trouble with is how to make sure the whole message is actually being sent to the client.
I send my message…

Ofer Arial
- 1,129
- 1
- 10
- 25