This is not very difficult, but you should read a few RFCs. You need to read the RFC spec for Socks v4, Socks v4a and Socks v5. I wrote a library that will do all the work for you, but if you prefer to write your own, this is also cool. My library was mentioned in a previous post (Starksoft). You can implement the Socks protocol using a standard TcpClient object or a Socket connection. TcpClient is simpler. You just need to send commands immediately after connecting to your proxy server. This command instructs the proxy server to which endpoint you want to connect to. There are also specifications for connecting UDP Socks, but it looks like you won’t need it.
RFC . , stackoverflow , 1, . .
http://en.wikipedia.org/wiki/SOCKS
, , , MIT, .:) Socks4ProxyClient.cs, Socks v4. SendCommand(), 282. Google Code. Starksoft. -, Google.
Socks5 , Socks4.
, , . , , !
Benton Stark