C
C#3y ago
Lord Jinxy

❔ TCP Server receives messages only after closing connection

I use the TCP protocol to send a message to the server once in a certain time interval. However, the server displays all these messages at once, and only after the client program closes. How can I make the server receive messages as the client proceeds, and not after the connection ends? Tried NetworkStream but the problem persisted.
4 Replies
Buddy
Buddy3y ago
$paste
MODiX
MODiX3y ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
amio
amio3y ago
Been a very, very long time since I did socket programming, but are you flushing?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server