Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
1 vote
1 answer
80 views

Why does the NetworkStream.ReadAsync call end the loop

I have a Task that should continuously read from a Tcp stream and place the data into a ConcurrentQueue for processing. Stepping through the function I notice that the ReadAsync Call does not return. ...
gwiz_kid's user avatar
  • 143
0 votes
1 answer
90 views

C# .NET TcpClient.Connect and timeouts

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
49 views

Poco Net ConnectionRefusedException when connecting a StreamSocket on a TCP port different from 80 [duplicate]

I wrote a TCP client for sending and receiving data to/from others, using Poco C++ library on Debian 12, like this code: int main(int argc, char** argv) { Poco::Net::StreamSocket sock; sock....
Nabila Salmi's user avatar
-2 votes
1 answer
105 views

Stored procedure fails with transport error message

I could use some help to figure out why my code is failing… I'm trying to execute a stored procedure with 130 parameters. The stored procedure works when I comment out two of the flag bit parameters ...
Paul's user avatar
  • 99
0 votes
0 answers
54 views

What will happen if I send 2 SYN packets to the server together with same 4 tuple but different sequence number?

The SYN packets are sent together before receiving any SYN-ACK from the server. Both SYN has the same source dest IP address & port. They only differ in seq no, so what will happen in this case?
Aashish Aggarwal's user avatar
1 vote
1 answer
103 views

Ping/Pong message system in Java between clients and a server over TCP sockets

I need to create a connection between 4 clients and a server and they should communicate over a networkprotocol. I'm quite clueless and I don't know what I need to implement in which class. I managed ...
Chulija's user avatar
  • 11
0 votes
0 answers
315 views

Socket connect() function waits for a long time, how to avoid this? [duplicate]

I am new to socket program and I am facing an issue. I created a client socket, now I am try to connect to the server using the connect() function. If my server is down or not reachable for some ...
sathish k's user avatar
0 votes
0 answers
119 views

How do I receive multiple responses to a single TCP/IP request?

I’m working with a 3rd party device that I'm communicating with over a TCP/IP connection. According to the manual I was provided by the vendor, the tool is started when I send to it the RUN command (...
Paul's user avatar
  • 99
0 votes
0 answers
69 views

RESET ACK after client hello, ack

I have a server where it completes the TCP handshake and client sends Client Hello and server responds with Ack. after this suddenly Server Sends REST ACK. I expect that on receiving REST ACK, client ...
VikasPushkar's user avatar
0 votes
1 answer
159 views

Gstreamer create RTP stream

I want to use gstreamer to package and stream h264 video frames. The udp method succeeds, but the tcp method does not work. What is my problem? This is a rtp client program. The following is the code ...
Linby's user avatar
  • 1
0 votes
1 answer
109 views

Client disconnecting right after the connection has been made [closed]

I have been asked to implement a card game(the loading and save don't function as intended, but this shouldn't affect the connection) from a previous project in a TCP server/client situation. In order ...
Ria's user avatar
  • 27
0 votes
1 answer
166 views

Is there a way to simulate an SQL Server with C#? [closed]

I want to create a simulated SQL server where I give it a log file to simulate. I don't want to deal with a full blown Sql server where I have to input dummy data, but a simple script(log) monkey ...
Ranald Fong's user avatar
0 votes
1 answer
469 views

Certificate revocation and CRL with status unknown

I need help to understand how to configure and how certificate revocations really work in Windows. I'm testing a scenario where I have a self-signed certificate that will be the one for the root CA, ...
MckPT's user avatar
  • 35
0 votes
0 answers
129 views

TcpClient object does not close in MAUI on Android

I have 2 applications. Server and client. The server is written in C# Console application and it describes the logic for listening to all incoming connections using TcpClient. I also use StreamWriter ...
Алексей Кондратьев's user avatar
0 votes
1 answer
131 views

TcpClient connecting even though no TcpListener is running

I've got something happening I do not understand. I have a laptop connected to my home office over a VPN with a 172.* IP address. I have a system at the office that I remote into with a 10.* IP ...
Matt Davis's user avatar
  • 46.3k
2 votes
0 answers
79 views

setsockopt Timeout Not working Properly In Raspberry Pi

I am working with Raspberry Pi 4 with bookworm 64bit OS for connecting devices with TCP/IP. I need some delay for socket timeout if no response from my server. The Raspberry Pi acts as a client. I am ...
Sathish's user avatar
  • 445
0 votes
1 answer
540 views

Problem with: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

I am trying to write a Python program using a client-server model that supports uploading a file from client to server by fragmenting the file and for each fragment, create a thread to send it. I try ...
Rachal's user avatar
  • 3
1 vote
0 answers
34 views

The message that the server sends to a client through TCP in Java gets changed when the client receives it

I'm working on an online game. For communication between clients and the server, I'm using TCP. Now, when clients send their usernames to the server, the server should message them back '1', but the ...
Howell's user avatar
  • 11
0 votes
1 answer
64 views

TcpClient connection closes when being inactive [duplicate]

My .NET MAUI application communicates with a server using a tcpconenction. However, if the user turns his phone off or minimizes the application for a few minutes and then reopens it, the connection ...
Joelbu's user avatar
  • 144
0 votes
1 answer
79 views

How to detect before throwing SocketException a closed connection?

I try to write a TcpClientPool to manage a KeepAlive behavior with the host public class TcpClientPool : IDisposable { private readonly ConcurrentDictionary<string, TcpClient> _clients = new ...
thibsc's user avatar
  • 4,101
0 votes
0 answers
72 views

TcpListener and TcpClient

I'm trying to connect TcpClient (client-side) and TcpListener (server-side) to send (more than one) data stream. I have a problem that I could not solve by reading docs and articles... This is the ...
Attilio Gelosa's user avatar
0 votes
2 answers
111 views

How to ensure messages are separation in the Socket

I have currently the problem, that messages are supposed to arrive separated at the server. private Encoding _encode = Encoding.Default; public Encoding DataEncoding { get { return ...
Grizzy's user avatar
  • 3
0 votes
0 answers
171 views

TCP Client NetworkStream ReadAsync Hanging

I am trying to implement TCP communication in a Windows Form App. The user clicks a button and a command is sent successfully, but I am having trouble getting the result of the command back using ...
Breadman10's user avatar
1 vote
1 answer
55 views

C# TcpClient Networkstream read timeout - Recognize a String from ReadAsync (Telnet)

I am connecting to a remote Telnet Server using TcpClient and Networkstream, as long as the expected answer is delivered from the server everything works fine - however I would like to add a timeout, ...
Manuel's user avatar
  • 675
0 votes
0 answers
74 views

keep track of TCP client connection status

my current implementation contains a public propriety that is binded to a toggle button { get => _isListening; private set { if (_isListening != value) { ...
federico's user avatar
0 votes
1 answer
102 views

Spring Integration TCP Client unable to receive messages from external TCP Server

I've a use case where I need to send messages to an external TCP Server with 2 IP/ports for Round Robin distribution (each connection for each pair of IP/port, and it should be keep-alive for message ...
ShadowStorm's user avatar
0 votes
1 answer
46 views

Memcache SET command does not work on localhost but from remote machine

I developed a basic memcache get and set implementation in c#. When i run a test, everything works as expected, when the test is run on another machine than the memcache server. When i run the same ...
Dryzler's user avatar
  • 17
0 votes
0 answers
119 views

Read a String with TCP Sockets in Kotlin

I have a TCP Socket implementation in Kotlin and use the code below to read a String (using a BufferedReader): val readBuffer = BufferedReader(InputStreamReader(socket.inputStream)) private fun ...
Flock Dawson's user avatar
  • 1,888
-1 votes
1 answer
436 views

TCP Socket implementation in Kotlin

We've implemented a Socket Client in Kotlin to communicate with a Payment Terminal in the same local network. It works like the following: We open the Socket connection, the Payment Terminal responds ...
Flock Dawson's user avatar
  • 1,888
0 votes
1 answer
54 views

Unit testing a class that contains multiple continuous tasks at the background

I would like to unit test the WpaConnection class which contains multiple continuous tasks. Starting of these task is dependent on TCP connection. I would like to gather some information on what would ...
Hamza's user avatar
  • 5
0 votes
1 answer
455 views

Delphi Indy IdTCPClient ReuseSocket is getting "Socket error # 10048 - Address already in use"

I have this simple code: var IdTCPClient1: TIdTCPClient; IdTCPClient2: TIdTCPClient; begin IdTCPClient1 := TIdTCPClient.Create; IdTCPClient2 := TIdTCPClient.Create; IdTCPClient1.UseNagle :=...
R.Schirru's user avatar
0 votes
0 answers
52 views

I am sending message to server via TCP connection, but it is not showing in the server's log

I am able to connect to the server and receive message. When I send a message, in my logs I keep getting the message that the message is sent successfully, but it is not being reflected on the server'...
Gurpreet Singh's user avatar
0 votes
0 answers
154 views

A TCP client in Go - what to choose: conn.Write(data) or Fprintf(conn, data)?

I am writing a little TCP client, which sends a "query" to home music server and gets answers. There also are answers emitted by the server with no queries ("broadcasted" - like ...
Abram's user avatar
  • 19
2 votes
1 answer
1k views

When to disable Nagle's algorithm for TcpClient?

From docs: When NoDelay is false, a TcpClient does not send a packet over the network until it has collected a significant amount of outgoing data. Because of the amount of overhead in a TCP segment, ...
user2650277's user avatar
  • 6,779
1 vote
1 answer
55 views

Unity: Why is my texture flickering while receiving webcam feed over TCP?

I try to receive my webcam feed in Unity over TCP and assign it as a Texture2D to my plane. It works really well but it is flickering, so my guess is that the texture is loading in empty textures ...
potu1304's user avatar
  • 109
0 votes
1 answer
148 views

Read multiple sockets from single thread [low-latency]

As a network client I would like to follow the input from two TCP connections. Both servers send a few packets per second. Each packet is small in size when compared to the available bandwidth. ...
Pascal de Kloe's user avatar
0 votes
1 answer
228 views

Sockets Connector - is there any way to read data instead of send and receive - Mule 4 [closed]

There is a requirement. We have to connect to tcp server. We are acting as a client. Will initiate a logon massage to tcp server. After successful logon they going to push data to that tcp server. So ...
Kranthi Kumar's user avatar
4 votes
0 answers
3k views

.NET 8 C#: SslStream "Cannot determine the frame size or a corrupted frame was received."

I have two .NET 8 C# applications communicating with one another from two separate servers. I am attempting to use SslStream secure TCP. I am getting an error re: the Authentication between the two ...
codeMonkey's user avatar
  • 4,947
0 votes
0 answers
74 views

TCP connection only sending but not receiving messages

I am currently trying to create a simple TCP Peer2Peer communication between two computers via Swift. On my on computer it works fine, but when I move one instance to another computer, it receives ...
binsBen's user avatar
1 vote
1 answer
307 views

boost asio tcp connection no received data after reconnecting and reading

I am using boost asio to connect to a TCP Server. When I run the code it works fine after start. I send the request and get the response. When I turn off the tcp server (it is a device) I am running ...
otto's user avatar
  • 2,075
1 vote
1 answer
237 views

The operation is not allowed on non-connected sockets. System.Net.Sockets

string DeviceTCPIP = "168.34.15.249"; string BackData; string TextMessage; int DevicePort = 5600; void ReadCard() { this.threadListen = new Thread((ThreadStart)(() => { ...
Hakan Demir's user avatar
1 vote
0 answers
53 views

How get real raw data over tcp nodejs

I want to retrieve data via TCP, but the data obtained becomes the presence of new lines. However, if you use other tools such as putty, the results look good. Where do you think the problem?. Thank ...
Mail's user avatar
  • 11
0 votes
0 answers
100 views

How get real raw data over tcp

I want to retrieve data via TCP, but the data obtained becomes the presence of new lines. However, if you use other tools such as putty, the results look good. Where do you think the problem lies. ...
Mail's user avatar
  • 11
0 votes
0 answers
227 views

Recive [Errno 111] Connection refused on load test for TCP Server

I'm trying to set up a job make a load test on a TCP server. The idea is for each 'client' to connect to the server, send a message and close the connection (without waiting for a response). Doing ...
Leonardo Guarezi's user avatar
0 votes
0 answers
44 views

always getting crash issue when trying to receive string value from TCP Server-Client [duplicate]

i always getting crash issue when trying to receive string value from TCP Server-Client, can someone fix it?? struct request_data_t { int Mode; bool boolean; int value; std::string ...
Mika Cybertron OFFICIAL's user avatar
1 vote
0 answers
145 views

TCPClient Reading Stream

I have a Netty game server that sends JSON messages with a null delimiter. I had an AS3 client communicating correctly with that server but our new Unity client can't communicate properly probably due ...
berkayk's user avatar
  • 2,398
2 votes
1 answer
172 views

Python 3.12 non-blocking TCP Client

I am trying to listen to a TCP server I have no control over (it is a local windows app broadcasting every 500ms on a fixed socket). I can set up a reader to get a random length packet in blocking ...
ilnadi's user avatar
  • 43
1 vote
0 answers
42 views

TCP IP Socket is destroying during Server and Client Communication ( net: NodeJS)

I am new in TCP IP client server communication. import net from "net"; private static server: net.Server; private static socket: net.Socket | null = null; private static createTCPServer(): ...
Prashant Kumar's user avatar
1 vote
0 answers
141 views

How to set TCP_KEEPINTVL in C# using System.Net.Sockets.Socket

I would like to set TCP_KEEPIDLE, TCP_KEEPINTVL, and TCP_KEEPCNT settings using C# .NET Standard 2.1 System.Net.Sockets.Socket class in C# (that is accessed by TcpClient.Client). Socket....
user1757226's user avatar
1 vote
1 answer
304 views

Problem sending 2 files to the client using Boost.Asio, Error: read: End of file [asio.misc:2]

I want to send two files to the client, the first file is img.jpg and the second file is message.txt The first file img.jpg is received correctly, but the file message.txt is received with size zero ...
boost's user avatar
  • 13

1
2 3 4 5
52