|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SocketFactory
This is a facade for a socket factory service. The interface provides various methods for socket creation. Under this interface can be hidden protocol-specific implementation, while users are isolated from the protocol logic.
An implementation is provided by the TLS Client Bundle.
| Method Summary | |
|---|---|
java.net.Socket |
openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress proxy,
int pport)
Connects a socket through a proxy to address and port. |
java.net.Socket |
openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
Connects a socket through a proxy to address and port. |
java.net.Socket |
openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport)
Connects a socket through a proxy from localAddr and localPort ( multi IP machines) |
java.net.Socket |
openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
Connects a socket through a proxy from localAddr and localPort ( multi IP machines) |
java.net.Socket |
openProxySocket(java.lang.String host,
int port,
java.net.InetAddress proxy,
int pport)
Connects a socket using a proxy, specified by proxy and pport to the host, defined by host and port. |
java.net.Socket |
openProxySocket(java.lang.String host,
int port,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
|
java.net.Socket |
openProxySocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport)
Connects a socket using a proxy from the local address (localAddr, localPort) to the remote address (host, port). |
java.net.Socket |
openProxySocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
|
java.net.Socket |
openSocket(java.net.InetAddress address,
int port)
Opens a Socket and binds it to the remote address and port. |
java.net.Socket |
openSocket(java.net.InetAddress address,
int port,
java.util.Dictionary props)
Opens a Socket and binds it to the remote address and port. |
java.net.Socket |
openSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
Opens a Socket and binds it to the remote address and port from localAddr and localPort ( multi IP machines). |
java.net.Socket |
openSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.util.Dictionary props)
Opens a Socket and binds it to address and port from localAddr and localPort ( multi IP machines). |
java.net.Socket |
openSocket(java.lang.String host,
int port)
Same as openSocket( InetAddress address, int port) but performs InetAddress.getByName(host) to obtain the address. |
java.net.Socket |
openSocket(java.lang.String host,
int port,
java.util.Dictionary props)
Same as openSocket( InetAddress address, int port) but performs InetAddress.getByName(host) to obtain the address. |
java.net.Socket |
openSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
Same as openSocket(InetAddress address, int port, InetAddress localAddr, int localPort) but performs InetAddress.getByName(host) to obtain the address. |
java.net.Socket |
openSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.util.Dictionary props)
Same as openSocket(InetAddress address, int port, InetAddress localAddr, int localPort) but performs InetAddress.getByName(host) to obtain the address. |
| Method Detail |
|---|
java.net.Socket openSocket(java.net.InetAddress address,
int port)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket to
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.net.InetAddress address,
int port,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket toprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket from
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.lang.String host,
int port)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket to
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.lang.String host,
int port,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket toprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket from
java.io.IOException - If an I/O error occurs.
java.net.Socket openSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress proxy,
int pport)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket toproxy - the address of the proxypport - the port of the proxy
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket toproxy - the address of the proxypport - the port of the proxyprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromproxy - the address of the proxypport - the port of the proxy
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
throws java.io.IOException
address - remote address to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromproxy - the address of the proxypport - the port of the proxyprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.lang.String host,
int port,
java.net.InetAddress proxy,
int pport)
throws java.io.IOException
host - remote host to bind the socket toport - remote port to bind the socket toproxy - the address of the proxypport - the port of the proxy
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.lang.String host,
int port,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
throws java.io.IOException
host - remote host to bind the socket toport - remote port to bind the socket toproxy - the address of the proxypport - the port of the proxyprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.openProxySocket(String host, int port, InetAddress proxy, int pport)
java.net.Socket openProxySocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport)
throws java.io.IOException
host - remote host to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromproxy - the address of the proxypport - the port of the proxy
java.io.IOException - If an I/O error occurs.
java.net.Socket openProxySocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort,
java.net.InetAddress proxy,
int pport,
java.util.Dictionary props)
throws java.io.IOException
host - remote host to bind the socket toport - remote port to bind the socket tolocalAddr - local address to bind the socket fromlocalPort - local port to bind the socket fromproxy - the address of the proxypport - the port of the proxyprops - socket properties.
Sockets can be customized via these properties.
See SocketFactory implementation documentation for details on how to use these props.
java.io.IOException - If an I/O error occurs.openProxySocket(String host, int port, InetAddress localAddr, int localPort, InetAddress proxy, int pport)
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||