Questions tagged [network-programming]
Programming associated with creating and managing networks as well as adding network connectivity to a (set of) programs.
network-programming
11,396
questions
0
votes
0
answers
28
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);
...
1
vote
1
answer
31
views
Is there a way to make two pings in one SSH session?
I'm trying to make a script that makes a connection via ssh to a cisco switch, and right there makes two pings one after the other.
The problem is when I'm doing it - the output in the second ping is &...
0
votes
1
answer
35
views
Client-Server Connection Timeout in WSL
I am working on a project where I have a TCP server running inside WSL2 on a Windows machine, and I'm trying to connect to this server from a client running on another machine on the same local ...
0
votes
1
answer
35
views
Why using SSL_peek returns duplicated data?
I made the following code to find the amount of bytes I need to read in order to reach the end of a given delimiter, by using SSL_peek.
int TcpClient::PeekEndOfDelimiter(const std::vector<unsigned ...
0
votes
0
answers
14
views
Validator function in Python NDN
I've been working on getting a standard NDN process working, and I cannot figure the validator function out for the life of me, and getting a proper function call for it.
This function is required to ...
0
votes
0
answers
44
views
Docker Build Fails Due to Network Connectivity Issue with Prisma (EAI_AGAIN)
I am experiencing a network connectivity issue while building a Docker image for my Node.js project, which uses Express and Prisma ORM to communicate with a PostgreSQL database. The error occurs ...
0
votes
0
answers
47
views
Request Chunks from the peer in parallel in golang over a tcp connection
I'm building a P2P file transfer system in Go that fetches chunks of data from peers in parallel. While sequential requests work fine, parallel requests using goroutines behave inconsistently, ...
0
votes
1
answer
33
views
How to implement 3rd party data fetches in Vite + Vue web-application?
I want to use 3rd party function (actually, it is mine, but written in different time and different file), which requests data via fetch function.
In my Vue + Vite application I import that function ...
0
votes
0
answers
34
views
Issue Sending Large Custom Waveforms to Function Generator via TCP using socket
I'm trying to send large custom waveforms (up to 50,000 data points) to a Function Generator over a TCP connection. While smaller waveforms (up to 200 data points) are transmitted correctly, larger ...
0
votes
1
answer
34
views
OMNET++ simulation : Class not found perhaps its code was not linked in
I'am having a issue with omnet++ when running my first project and I don't get where the problem is
the error is : <!> Class "BaseStation" not found -- perhaps its code was not linked ...
1
vote
0
answers
23
views
How to get http path from h2c in net.conn in go
I have a net.Conn, there is a h2c request in it, I want to write a func to extract path in it(from first headers frame)
// Get path form http2
func extractPathFromH2Request(conn net.Conn) string {
...
-3
votes
1
answer
89
views
How to get the MAC address of my local network interface by win socket or remote ip [closed]
Is there a way to get the MAC address (physical address) of my network interface, through which the socket connection passes, having win socket and remote ip.
That is, we have a SOCKET through which ...
3
votes
0
answers
31
views
Intercept network packets to userspace and transmit packets to application
I have one application which sends/receives packets using regular glibc read/write/send/recv.
I would like a second application to stop the packets reaching the network, receive the packet itself and ...
0
votes
1
answer
14
views
Edge-weighted Spring Embedded Layout based on identity in py4cytoscape
I am trying to automate the creation of networks using Cytoscape. Specifically, I want to use the Edge-weighted Spring Embedded Layout based on identity with py4cytoscape. While this layout is ...
0
votes
1
answer
92
views
How to use internal IP for deploying application?
I've been working with MQTTnet recently and I'm having some issues while I try to create a broker and connect to it with a client using another IP which is not the default one, which tends to be the 0....