Interface IConnection
public interface IConnection
Interface for all connection objects.
- Version:
- $Revision$, $Date$
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the connectionbyte[]
Returns the response in byte array formatint
sendRequest
(String req) Send request to the server using this connectionvoid
setSoTimeout
(int timeout) SetTimeout
-
Method Details
-
sendRequest
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
SetTimeout- Throws:
SocketException
-