Outline ·
[ Standard ] ·
Linear+
tcp networking library that easy to use, c#
|
TSnarf03
|
Jan 2 2024, 05:24 PM, updated 2y ago
|
|
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
|
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
|
|
|
|
|
|
TSnarf03
|
Jan 2 2024, 06:48 PM
|
|
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  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
|
Jan 2 2024, 07:10 PM
|
|
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)...
|
|
|
|
|