1、一个proxy的实现
http://blog.codingnow.com/2011/05/xtunnel.html
2、SOCK5 RFC
http://www.faqs.org/rfcs/rfc1928.html