Several questions about Socks5Proxy.java

My name is David Liu, I am using smack to develop facebook chat engine and I have several questions for Socks5Proxy.java. My code does not use Socks5Proxy and I want to know what is the purpose of this class. Could anyone answer below questions? Thanks.

  1. Is this server socket created for Facebook’s server to connect?
  2. How does this server socket do handshaking with incoming connection request?
  3. Is the content passed via this server socket encrypted?

Thanks

You may find your asnswers in the spec for XEP-0065: SOCKS5 Bytestreams.