|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
Abstract TCP connection.
| Method Summary | |
|---|---|
void |
close()
Closes the current connection. |
java.io.InputStream |
getInputStream()
Returns connection input stream. |
java.lang.String |
getLocalAddress()
Returns local address. |
int |
getLocalPort()
Returns local port. |
java.io.OutputStream |
getOutputStream()
Returns connection output stream. |
java.lang.String |
getRemoteAddress()
Returns remote end address. |
int |
getRemotePort()
Returns remote end port. |
long |
getTimeout()
Returns connection timeout. |
boolean |
isClosed()
Checks if connection is already closed. |
void |
setTimeout(long timeout)
Setups connection timeout. |
| Method Detail |
|---|
java.lang.String getRemoteAddress()
int getRemotePort()
java.lang.String getLocalAddress()
int getLocalPort()
long getTimeout()
throws java.io.IOException
java.io.IOException - if an error occurs
void setTimeout(long timeout)
throws java.io.IOException
timeout - new timeout value
java.io.IOException - if an error occurs
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException - if an I/O error occursvoid close()
boolean isClosed()
true if connection is closed;
false otherwise
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||