I am writing proxies using .NET and C #. I didn't program much on Socket, and I'm not sure if this is the best way. What would be the best way to implement this? Should I use synchronous sockets, asynchronous sockets? Please, help!
He must...
Connect to the server on two different ports and you can send data to both ports at the same time.
Connect to the server immediately and start forwarding packets as soon as the client is connected.
Forward packets in the same order in which they were received.
Be as low as possible latency.
I do not need the ability for several clients to connect to a proxy server, but it would be nice if its easy to implement.
Client --------- Proxy ------- Server--- | ----------------- | ---------------- |Port <--------> Port <-------> PortPort <--------> Port <-------> Port
I was already messing around with this source code . This was done well, recommended.
, PortFusion! , - all TCP. .NET 4.0 .
ReceiveAsync SendAsync, .NET 3.5, , , - Async .
: : async
Source: https://habr.com/ru/post/1740743/More articles:iterate only through existing properties of objects, not from the parent class? - oopDataModelSelection in a list represented via EntityQuery - jsfCurrency Destruction in C # - c #jRuby and Matz Ruby on the same machine? - linuxDelphi OTA: есть ли способ получить активную конфигурацию при построении (D2010)? - delphiGWT folding table - gwtjquery checkbox help get name and value of checkbox - javascriptHow to save Map objects in Java database in MySQL - javaSerializing a java card for db - serializationDLL Deployment Strategies - .netAll Articles