APIdia Launch Partner
Top Description Constructors Methods
sun.rmi.transport.tcp

public Class TCPDirectSocketFactory

extends RMISocketFactory
Class Inheritance
Imports
java.io.IOException, java.net.Socket, .ServerSocket, java.rmi.server.RMISocketFactory

RMIDirectSocketFactory creates a direct socket connection to the specified port on the specified host.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ServerSocket
createServerSocket(int port)

Implements abstract java.rmi.server.RMISocketFactory.createServerSocket.

Implements java.rmi.server.RMIServerSocketFactory.createServerSocket.

Create a server socket on the specified port (port 0 indicates an anonymous port).

public Socket
createSocket(String host, int port)

Implements abstract java.rmi.server.RMISocketFactory.createSocket.

Implements java.rmi.server.RMIClientSocketFactory.createSocket.

Creates a client socket connected to the specified host and port.

Inherited from java.rmi.server.RMISocketFactory:
getDefaultSocketFactorygetFailureHandlergetSocketFactorysetFailureHandlersetSocketFactory

Constructor Detail

TCPDirectSocketFactoryback to summary
public TCPDirectSocketFactory()

Method Detail

createServerSocketback to summary
public ServerSocket createServerSocket(int port) throws IOException

Implements abstract java.rmi.server.RMISocketFactory.createServerSocket.

Implements java.rmi.server.RMIServerSocketFactory.createServerSocket.

Doc from java.rmi.server.RMISocketFactory.createServerSocket.

Create a server socket on the specified port (port 0 indicates an anonymous port).

Exceptions
IOException:
if an I/O error occurs during server socket creation
createSocketback to summary
public Socket createSocket(String host, int port) throws IOException

Implements abstract java.rmi.server.RMISocketFactory.createSocket.

Implements java.rmi.server.RMIClientSocketFactory.createSocket.

Doc from java.rmi.server.RMISocketFactory.createSocket.

Creates a client socket connected to the specified host and port.

Exceptions
IOException:
if an I/O error occurs during socket creation