Skip to main content
Filter by
Sorted by
Tagged with
Best practices
1 vote
3 replies
65 views

So I am working on a MEAN stack project where in node I will emit the data to UI and in frontend I had some widgets ( as charts like gauge , line , pie and table ) where user can add dynamically ...
Vignesh's user avatar
  • 51
Best practices
0 votes
5 replies
69 views

struct timeval contains two fields: tv_sec and tv_usec, which hold a count of seconds and microseconds respectively. 1000000 microseconds is a whole second. Is it permitted to populate the tv_usec ...
user2138149's user avatar
  • 18.6k
1 vote
1 answer
103 views

Based on my question C# IVI VISA (e.g.: NI VISA) TCP Keep Alive I tried to use EasyHook to patch how NI VISA is opening a SOCKET connection. Finally I would like to modify the keep alive settings in ...
Wollmich's user avatar
  • 1,684
0 votes
1 answer
93 views

Connection check failed: Error: Client network socket disconnected before secure TLS connection was established Environment: ClickHouse Cloud Service Issue: When trying to connect my application to ...
Fayaz Rashid's user avatar
2 votes
1 answer
54 views

I use the socket option SO_TIMESTAMP to get kernel timestamps on received UDP datagrams with recvmsg(). It works well on Linux, not on macOS. In practice, it seems that macOS does return the timestamp ...
Thierry Lelegard's user avatar
0 votes
0 answers
52 views

I’m developing an MQL5 Expert Advisor that should connect to a local TCP server (127.0.0.1:5001). The server is running and responds correctly to Telnet. In MetaTrader, I added 127.0.0.1:5001 in ...
franzisko's user avatar
0 votes
1 answer
82 views

Server code is a socket accepting the request from curl and logging the byte info. import socket import selectors import traceback HOST = "0.0.0.0" # Listen on all interfaces PORT = 8000 ...
Vivek Singh's user avatar
3 votes
1 answer
194 views

I need to use socket() but the args given to the function make me confused. I have to do an school exercice where I have to use socket for intercept ethernet frame (more specifically arp spoofing). ...
surcouf's user avatar
  • 33
3 votes
1 answer
128 views

I have written a database server and client, and i'm using a poll loop #include <stdio.h> #include <stdbool.h> #include <getopt.h> #include <stdlib.h> #include <stdlib.h> ...
Kouroshtkk's user avatar
4 votes
1 answer
148 views

I'm trying to send SCTP messages over UDP. The setup appears to work, but I'm getting a retransmission message every time. Here's the process: Create a new UDP socket() bind() the socket to a local ...
brandav's user avatar
  • 795
1 vote
0 answers
92 views

I'm using non-blocking TCP sockets on linux, and occasionally seeing the following pattern: create the socket with socket() and set O_NONBLOCK call connect (to a non-listening port), get -1 with ...
user3188445's user avatar
  • 4,980
1 vote
0 answers
260 views

I'm using Rust's std UdpSocket to send data from one socket to another one locally. It all works fine if I set no read timeout or if I set a "big" read timeout like 10ms. Once I set the ...
Tim Woocker's user avatar
  • 2,046
3 votes
3 answers
151 views

I'm trying to handle EINTR error from POSIX connect call. I'm running on OSX this connect code: JNIEXPORT jint JNICALL Java_io_questdb_network_Net_connect (JNIEnv *e, jclass cl, jint fd, jlong ...
Alex des Pelagos's user avatar
0 votes
0 answers
66 views

I am writing a program that involves printing Raw Printer Command Language (PCL) files wrapped in Print Job Language (PJL) commands. I print it via a port 9100 socket connection to the printer using ...
silverbrook4's user avatar
0 votes
2 answers
77 views

I'm reading a PDF/book on socket programming by Breej. I understand that a server listens on a specific port (say localhost:3000). When I connect to the server from Browser 1, it uses an ephemeral ...
Mr. Ghosh's user avatar
0 votes
1 answer
92 views

I inherited code that calls the following: TcpClient client; // (removed try/catch blocks to simplify this discussion) client = new TcpClient { SendTimeout = 5000, ReceiveTimeout = 5000 }; client....
FoxScully's user avatar
  • 111
1 vote
0 answers
94 views

I am trying to capture and re-inject packets sent over ib_send_bw (infiniband RDMA) over two linux machines. I am utilizing RoCEv2 so rxe0 is my virtual NIC on both machines that would allow RDMA to ...
Homit Dalia's user avatar
0 votes
0 answers
74 views

I’m building a Node.js HTTP client that needs to: Use mutual TLS (mTLS) Enable keep-alive, so sockets are reused across requests. Set a keep-alive idle timeout to automatically close unused sockets ...
megha mishra's user avatar
0 votes
1 answer
63 views

I observed weird behavior when performing non-blocking accept loop. When there are multiple connection requests in the queue, only the first accept attempt succeed. All subsequent attempt fail with ...
Guest0x0's user avatar
  • 306
2 votes
2 answers
101 views

this is my first time asking a question so please pardon me if I have missed out on any info. I am quite new to using UDP and other socket communications on C# so i am quite stuck on this. I am trying ...
winter's user avatar
  • 67
2 votes
0 answers
103 views

i have the following code which works correctly in TLS 1.2 but fails in TLS 1.3 (in windows platform, linux this doesn't happen, in fact if you place the server end on windows, and client on linux it ...
emaayan's user avatar
  • 51
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
2 votes
2 answers
104 views

There's a nice answer to the problem of converting IP address to string representation and back. I mean specifically this snippet: struct sockaddr_in sa; char str[INET_ADDRSTRLEN]; // store this IP ...
LetMeSOThat4U's user avatar
0 votes
0 answers
73 views

I'm trying to make a server for a password manager I'm building, but the server seems to hang randomly and it seems to randomly throw rsa.pkcs1.DecryptionErrors randomly too. I did recently switch ...
SmallCoder12's user avatar
0 votes
0 answers
92 views

I have 2 python programs: 1st one is a tcp server that in while True cycle accepts new clients and handles each of them in a separate thread. On the client side I have basic functionality and use it ...
good user's user avatar

1
2 3 4 5
1329