New answers tagged network-programming
0
votes
WriteFile failure when networkshare is disconnected
The empty records happen because Windows caches network writes. When the share goes offline, WriteFile fails but space is already reserved, creating zeroed records.
Fixes:
Use FILE_FLAG_WRITE_THROUGH ...
0
votes
Set timeout for winsock recvfrom
You must use WSA_FLAG_OVERLAPPED when creating the socket with `WSASocket`.
int mHandle = WSASocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, NULL, 0, WSA_FLAG_OVERLAPPED);
Source: https://www....
1
vote
HTTP Request to a Specific Website Fails with "Connection Timed Out" in Code, but Works in Browser
@oliverhaven This is typically caused by the site's firewall blocking the default Python requests header. Try adding a common browser User-Agent:
python
headers = {'User-Agent': 'Mozilla/5.0 (X11; ...
0
votes
Python - Pip Install - Proxy Error - 'Cannot connect to proxy.', OSError'
I encounter the same error in docker build process.
1.332 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Your proxy ...
Advice
0
votes
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
There's been simple multiplayer games developed using C, Unix socket libs and telnet pretty much since the dawn of time, many which are open source. You can just peek at how those games were designed.
...
Advice
1
vote
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
My advice is less about your stated question, and instead about something much more boring, yet far more important: build and version control systems. You mentioned having to start from scratch when ...
Advice
3
votes
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
I think it is good that you have structured your code in such a way that you are keeping the server code separate from the client code. That way, if done properly, only the server code will have to be ...
Advice
0
votes
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
I agree with the comment that C would be harder than C++ or another language, it's certainly possible to do in C. You would end up recreating a lot of C++ or object oriented features as part of your ...
Advice
0
votes
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
In order to implement multiplayer, you need the (working) single player version. This means that in multiplayer mode, the only thing that differs is controlling an additional character (vehicle or ...
Advice
0
votes
0
replies
0
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
Yes, multiplayer will add a lot of complexity. And it will only be made harder by not having it in your design and implementation from the very beginning. Rendering, sound effects, visual effects, etc....
0
votes
Error 10061 while trying to connect to my server
I've experienced the same issue. The problem was caused by the Windows NAT service (winnat), which had taken over the UDP port 69 used by TFTP.
After running
net stop winnat
Tftpd64 started ...
3
votes
Accepted
Sending raw packets back to host's networking stack
What am I missing?
Network interfaces work like a pipe. If you send a packet through one end, it always comes out through the other – a packet sent through the 'host' end will not be reflected back ...
0
votes
How to make system proxy settings apply to HttpClient.GetAsync() without restarting Windows?
Since .net 9.0, the HttpClient's default proxy setting will be automatically updated when the related registry key is changed. (The premise is that the proxy is not set through HTTP(S)_PROXY ...
0
votes
How to make system proxy settings apply to HttpClient.GetAsync() without restarting Windows?
Due to the fact that the proxy settings are being changed exclusively for this process, I would recommend changing the code instead of global windows settings. An example of what you could do can be ...
2
votes
Increment the 3rd octet in excel by value of 4
With a simple add expression place the formula in A2 and dragdown
=TEXTJOIN(".",TRUE,TEXTSPLIT(A1,".")+{0,0,4,0})
-1
votes
Error Fetching YouTube Transcript Using YouTubeTranscriptApi on Server but Works Locally
This isn’t an issue with your code; it’s caused by YouTube blocking requests from cloud server IPs (like AWS, GCP, etc.).
When you run YouTubeTranscriptApi locally, your home/residential IP works fine....
0
votes
Who is using the Subnet inside a VNet in Azure
To see which resources are using a subnet, go to the Virtual Network (VNet) where the subnet is located. In the sidebar, select Connected Devices. This section lists all the resources currently ...
Top 50 recent answers are included
Related Tags
network-programming × 47568sockets × 7076
java × 5696
python × 3998
tcp × 3990
c# × 3926
linux × 3741
c × 3405
android × 3183
c++ × 3013
udp × 2151
docker × 2015
windows × 1696
ip × 1487
ios × 1411
.net × 1117
http × 1116
multithreading × 852
dns × 778
server × 707
kubernetes × 653
node.js × 651
php × 650
javascript × 649
port × 624