public class

RMIDirectSocketFactory

extends RMISocketFactory
java.lang.Object
   ↳ java.rmi.server.RMISocketFactory
     ↳ sun.rmi.transport.proxy.RMIDirectSocketFactory

Class Overview

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

Summary

Public Constructors
RMIDirectSocketFactory()
Public Methods
ServerSocket createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port).
Socket createSocket(String host, int port)
Creates a client socket connected to the specified host and port.
[Expand]
Inherited Methods
From class java.rmi.server.RMISocketFactory
From class java.lang.Object
From interface java.rmi.server.RMIClientSocketFactory
From interface java.rmi.server.RMIServerSocketFactory

Public Constructors

public RMIDirectSocketFactory ()

Public Methods

public ServerSocket createServerSocket (int port)

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

Parameters
port the port number
Returns
  • the server socket on the specified port
Throws
IOException

public Socket createSocket (String host, int port)

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

Parameters
host the host name
port the port number
Returns
  • a socket connected to the specified host and port.
Throws
IOException