All Questions
Tagged with tcp asynchronous
9 questions
2
votes
1
answer
604
views
Resilient & Stable TCP Server Polling
I am looking for feedback to perfect my code developed for WPF in terms of speed, stability and resiliency. My code is supposed to handle synchronous status polling as well as asynchronous Commands to ...
2
votes
0
answers
178
views
Asynchronous TCP server refactor design & not working features
I'm working on an asynchronous TCP server which is supposed to be used for a chat. I want to get a review for the TCP server part because I'm struggling to find a good design to fulfill the following ...
-1
votes
1
answer
2k
views
C# Handling Task Cancellations/Timeouts and Exceptions [closed]
I am very new to Tasks and therefore new to handling task cancellations and task exceptions.
I wrote this method that gets a List which is then used to populate an ObsservableCollection shown in a ...
4
votes
1
answer
135
views
Handling a single connection to a server or client
I'm writing an asynchronous TCP server and client for a game in C# and in particular getting sending right is a bit tricky because calling BeginSend() before ...
14
votes
1
answer
19k
views
Asynchronous TCP server
After some investigation, I implemented an asynchronous TCP server as per the following example. During my investigation I was unable to find an example that cleanly shuts down the server; after some ...
3
votes
1
answer
6k
views
Simple multi-client echo server
I've been looking at some async comms in C#. As a proof of concept, I've written a simple multi-client echo server. The server allows multiple TCP clients to connect and listens for input from the ...
0
votes
1
answer
715
views
Async TCP connection that handles reading and writing
My situation is as such:
I must connect to a server via TCP, at the end of the session (several hours), they will close the connection - throwing an exception that should be gracefully handled
I need ...
3
votes
0
answers
496
views
Basic Server/Client Model built around ASIO
For this project, I'm using the non-Boost version of the ASIO library.
The basic idea is that it is a relatively simple stand-alone class capable of functioning either as a server or client depending ...
2
votes
1
answer
2k
views
TCP Server with multithreading
I am working on a banking application. I want to create a multithreaded TCP Payment Card (iso8583) server that can handle passbook printing requests simultaneously. Multiple devices are connected to ...