Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 tcp networking library that easy to use, c#

views
     
TSnarf03
post Jan 2 2024, 05:24 PM, updated 2y ago

Look at all my stars!!
*******
Senior Member
4,547 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


need to make my work easier, need networking library that capable of sending and receiving tcp packets at the same time(synchronously), handing all the error, like detect disconnections, connected client crash hang, etc.

anything good i should look into ?

language is c#
flashang
post Jan 2 2024, 06:44 PM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


not sure if default tcp / socket enough for your usage.
You may need to do try catch / error handling by yourself.

Use TcpClient and TcpListener - .NET | Microsoft Learn
https://learn.microsoft.com/en-us/dotnet/fu...ets/tcp-classes

smile.gif


TSnarf03
post Jan 2 2024, 06:48 PM

Look at all my stars!!
*******
Senior Member
4,547 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


QUOTE(flashang @ Jan 2 2024, 06:44 PM)
not sure if default tcp / socket enough for your usage.
You may need to do try catch / error handling by yourself.

Use TcpClient and TcpListener - .NET | Microsoft Learn
https://learn.microsoft.com/en-us/dotnet/fu...ets/tcp-classes

smile.gif
*
did use the socket class b4, spend 1-2 extra months on just handling all the error, parsing, disconnection, network packet missing, etc. need to start another project, i want to avoid all those troubles, was wondering if there are any libraries that can make things easier, try to reduce the amount of time into base communications.
flashang
post Jan 2 2024, 07:10 PM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


QUOTE(narf03 @ Jan 2 2024, 06:48 PM)
did use the socket class b4, spend 1-2 extra months on just handling all the error, parsing, disconnection, network packet missing, etc. need to start another project, i want to avoid all those troubles, was wondering if there are any libraries that can make things easier, try to reduce the amount of time into base communications.
*
Saw some opensource network library, but did not try any of them.

You may need to choose and do the detail test (even debug)...


smile.gif



 

Change to:
| Lo-Fi Version
0.0165sec    0.37    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 06:30 AM