[C#] Socket Example
I code in C#, so every snippet I can find I'll share. This is real basic connection to a proxie using sockets, it may be out of date or usage. But sharing is caring.
I code in C#, so every snippet I can find I'll share. This is real basic connection to a proxie using sockets, it may be out of date or usage. But sharing is caring.
Code:
System.Net.Sockets.Socket newSocket = new System.Net.Sockets.Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //newSocket.Close(); newSocket.Connect("128.8.126.111", 3127); if (newSocket.Connected == true) { MessageBox.Show("test"); }