C# Proxy, what is the best way to do this?
- by Kin
I'm writing a proxy using .NET and C#. It has a couple of functions that it needs to fulfill.
I haven't done much Socket programming, and I am not sure the best way to go about it. Should I use Synchronous Sockets, Asynchronous sockets? Please help!
It must...
Accept Connections from the client on
two different ports, and be able to
receive data on both ports at the
same time.
When a connection is made on a port,
it must immediately connect to the
server, and start sending data as it
receives it from the client to the
server.
Packets must be forwarded in the
order they are received, exactly as they were received.
It needs to be as low latency as
possible.
I don't need the ability for multiple
clients to use the proxy, but it
would be a nice feature if its easy
to implement.