Skip to content

Instantly share code, notes, and snippets.

View uranium62's full-sized avatar

Oleksandr Melnyk uranium62

View GitHub Profile
static void Proxy()
{
var tcpListener = new TcpListener(IPAddress.Loopback, 9000);
tcpListener.Start();
var buffer = new byte[1024];
while (true)
{
var incomingConnection = tcpListener.AcceptTcpClient();
var tcpClient = new TcpClient();
tcpClient.Connect(IPAddress.Loopback, 9999);
class Program
{
static void Main(string[] args)
{
Sync();
Async().Wait();
}
const int len = 1024 * 16;