| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A basic interface which will be implemented for actual communication between client and the server. This interface provides the basic IO operations (open, close, read, write) required by the session communication.
| Field Summary | |
static int | 
ERROR
Static constant for indicating if the operation is a failure.  | 
static int | 
OK
Static constant for indicating if the operation is a success.  | 
| Method Summary | |
 int | 
close()
Closes the transport interface after communication is over.  | 
 int | 
open(java.lang.String[] params)
Opens the transport interface over which the data is sent/received.  | 
 byte[] | 
read()
Receive data from the peer over the transport interface.  | 
 int | 
write(byte[] buf,
      int len)
Send data to the peer over the transport interface.  | 
| Field Detail | 
public static final int OK
public static final int ERROR
| Method Detail | 
public int open(java.lang.String[] params)
         throws TransportException
params - parameters required for opening the session interface.TransportException - in case of an error during opening the
 transport interface.
public int write(byte[] buf,
                 int len)
          throws TransportException
buf - Buffer that contains the bytes to be sent.len - Number of bytes to write.TransportException - in case of an error during send.
public byte[] read()
            throws TransportException
TransportException - in case of an error during receive.
public int close()
          throws TransportException
TransportException - in case of an error during closing.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||