com.distinct.rpc
Class ClientTCPx

java.lang.Object
  |
  +--com.distinct.rpc.ClientGeneric
        |
        +--com.distinct.rpc.ClientTCP
              |
              +--com.distinct.rpc.ClientTCPx
All Implemented Interfaces:
java.io.Serializable

public class ClientTCPx
extends ClientTCP

Implementation of the RPC protocol via TCP with extended constructors from the javax.net package.

See Also:
ClientGeneric, ClientTCP, Serialized Form

Constructor Summary
ClientTCPx(java.net.InetAddress host, int prog, int vers, int port, javax.net.SocketFactory fact)
          Creates a new SSL protocol object and connects it to a server with a known port.
ClientTCPx(java.net.InetAddress host, int prog, int vers, javax.net.SocketFactory fact)
          Creates a new SSL protocol object.
 
Methods inherited from class com.distinct.rpc.ClientTCP
Call, close, setResend, setsock_opt, setTimeout
 
Methods inherited from class com.distinct.rpc.ClientGeneric
Call, getReturnedVerifier, setCredential, setVerifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTCPx

public ClientTCPx(java.net.InetAddress host,
                  int prog,
                  int vers,
                  int port,
                  javax.net.SocketFactory fact)
           throws java.io.IOException
Creates a new SSL protocol object and connects it to a server with a known port. (No interaction with a portmapper)

Parameters:
host - The host on which the server lives.
prog - The program ID of the server as defined in the .x IDL file.
vers - The program version of the server as defined in the .x IDL file.
port - The port on which the server listens.
fact - The socket factory that creates the client socket (use an SSLSocketFactory for SSL connections here).
Throws:
java.io.IOException - When the socket could not be opened.

ClientTCPx

public ClientTCPx(java.net.InetAddress host,
                  int prog,
                  int vers,
                  javax.net.SocketFactory fact)
           throws RPCError,
                  java.io.IOException
Creates a new SSL protocol object. Calls the portmapper to get the port information.

Parameters:
host - The host on which the server lives. In an applet this must be the host where the applet comes from.
prog - The program ID of the server as defined in the .x IDL file.
vers - The program version of the server as defined in the .x IDL file.
fact - The socket factory that creates the client socket (use an SSLSocketFactory for SSL connections here).
Throws:
RPCError - When the port can not be found in the portmapper (perhaps there is even no portmapper running).
java.io.IOException - When the socket could not be opened.