Interface IConnection


public interface IConnection
Interface for all connection objects.
Version:
$Revision$, $Date$
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the connection
    byte[]
    Returns the response in byte array format
    int
    Send request to the server using this connection
    void
    setSoTimeout(int timeout)
    SetTimeout
  • Method Details

    • sendRequest

      int sendRequest(String req) throws IOException
      Send request to the server using this connection
      Throws:
      IOException
    • getResponse

      byte[] getResponse()
      Returns the response in byte array format
    • disconnect

      void disconnect()
      Close the connection
    • setSoTimeout

      void setSoTimeout(int timeout) throws SocketException
      SetTimeout
      Throws:
      SocketException