-
- All Implemented Interfaces:
-
java.net.SocketImplFactory
public class PseudoTcpSocketFactory extends SocketFactory implements SocketImplFactory
-
-
Field Summary
Fields Modifier and Type Field Description public final static longDEFAULT_CONVERSATION_IDpublic final static intDEFAULT_CONNECT_TIMEOUT
-
Method Summary
Modifier and Type Method Description SocketcreateSocket(String host, int port)Creates a socket and connects it to the specified port number at the specified address. SocketcreateSocket(InetAddress host, int port)Creates a socket and connect it to the specified remote address on the specified remote port. SocketcreateBoundSocket(InetSocketAddress sockAddr)Creates socket bound to local sockAddr SocketcreateSocket(String host, int port, InetAddress localHost, int localPort)Creates a socket and connects it to the specified remote host at the specified remote port. SocketcreateSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Creates a socket and connects it to the specified remote host on the specified remote port. PseudoTcpSocketcreateSocket(DatagramSocket datagramSocket)Creates a socket that will run on given datagramSocket PseudoTcpSocketcreateSocket()Creates the PseudoTcp socket and binds it to any available port on the local host machine. SocketImplcreateSocketImpl()-
-
Method Detail
-
createSocket
Socket createSocket(String host, int port)
Creates a socket and connects it to the specified port number at the specified address.
-
createSocket
Socket createSocket(InetAddress host, int port)
Creates a socket and connect it to the specified remote address on the specified remote port.
-
createBoundSocket
Socket createBoundSocket(InetSocketAddress sockAddr)
Creates socket bound to local sockAddr
- Parameters:
sockAddr- address for the pseudo socket
-
createSocket
Socket createSocket(String host, int port, InetAddress localHost, int localPort)
Creates a socket and connects it to the specified remote host at the specified remote port.
-
createSocket
Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port.
-
createSocket
PseudoTcpSocket createSocket(DatagramSocket datagramSocket)
Creates a socket that will run on given datagramSocket
- Parameters:
datagramSocket- the socket to run on
-
createSocket
PseudoTcpSocket createSocket()
Creates the PseudoTcp socket and binds it to any available port on the local host machine. The socket will be bound to the wildcard address, an IP address chosen by the kernel.
-
createSocketImpl
SocketImpl createSocketImpl()
-
-
-
-