Smack

org.jivesoftware.smack.proxy
Class Socks4ProxySocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by org.jivesoftware.smack.proxy.Socks4ProxySocketFactory

public class Socks4ProxySocketFactory
extends javax.net.SocketFactory

Socket factory for socks4 proxy

Author:
Atul Aggarwal

Constructor Summary
Socks4ProxySocketFactory(ProxyInfo proxy)
           
 
Method Summary
 Socket createSocket(InetAddress host, int port)
           
 Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localHost, int localPort)
           
 
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Socks4ProxySocketFactory

public Socks4ProxySocketFactory(ProxyInfo proxy)
Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localHost,
                           int localPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(InetAddress host,
                           int port)
                    throws IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(InetAddress address,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
IOException

Smack

Copyright © 2003-2007 Jive Software.