com.tivoli.twg.netipc
Interface TWGSessionSocketImplFactory


public interface TWGSessionSocketImplFactory


Method Summary
 TWGSessionSocketImpl accept(byte[] handle)
          Accept an incoming session - blocks until incoming session request is accepted or an error occurs.
 TWGSessionSocketImpl connect(java.lang.String target, java.lang.String init_str)
          Establish a connection to the specified target
 java.lang.String getDriverName()
          Get descriptive name for this factory
 void initialize(java.lang.String init_str)
          Initialize the session socket factory and start listening on the server socket for incoming session requests.
 void terminate()
          Terminate the socket factory
 

Method Detail

initialize

public void initialize(java.lang.String init_str)
                throws TWGInitParmException,
                       java.io.IOException
Initialize the session socket factory and start listening on the server socket for incoming session requests.

Parameters:
init_str - initialization string
Throws:
TWGInitParmException - error in initialization parameter
java.io.IOException - error initializing server socket

accept

public TWGSessionSocketImpl accept(byte[] handle)
                            throws java.io.IOException
Accept an incoming session - blocks until incoming session request is accepted or an error occurs.

Parameters:
handle - opaque handle used by implementation
Returns:
session socket implementation for incoming session
Throws:
java.io.IOException - error accepting incoming session

connect

public TWGSessionSocketImpl connect(java.lang.String target,
                                    java.lang.String init_str)
                             throws TWGInitParmException,
                                    java.io.IOException
Establish a connection to the specified target

Parameters:
target - target address name
init_str - initialization string
Throws:
TWGInitParmException - error in initialization parameter
java.io.IOException - error establishing connection

terminate

public void terminate()
               throws java.io.IOException
Terminate the socket factory

Throws:
java.io.IOException - - if error during termination

getDriverName

public java.lang.String getDriverName()
Get descriptive name for this factory

Returns:
description of this factory