com.tivoli.twg.netipc
Interface TWGSessionSocketImpl


public interface TWGSessionSocketImpl


Method Summary
 void close()
          Close session
 java.lang.String getAddressName()
          Get address name of session socket
 int read(byte[] b, int off, int len)
          Read data from session into specified buffer
 void write(byte[] b, int off, int len)
          Write data to session from specified buffer
 

Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Write data to session from specified buffer

Parameters:
b - buffer containing data to write
off - offset of data in buffer
len - length of data in buffer
Throws:
java.io.IOException - error on write

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Read data from session into specified buffer

Parameters:
b - buffer to read data into
off - offset to place data in buffer
len - length of data to read into buffer
Throws:
java.io.IOException - error on read

close

public void close()
           throws java.io.IOException
Close session

Throws:
java.io.IOException - error on close

getAddressName

public java.lang.String getAddressName()
Get address name of session socket

Returns:
address name of session socket