|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteConnection
This interface represents an already opened, stream-oriented connection to a remote host, e.g. via TCP or via Bluetooth L2CAP/RFCOMM. The specific connection implementations should implement it with internal or anonymous classes so that authentication protocols can re-use connections.
| Method Summary | |
|---|---|
void |
close()
Closes the underlying connection cleanly and frees any resources held by it. |
boolean |
equals(java.lang.Object other)
This must be implemented properly so that KeyManager can deal with keys for different hosts. |
java.io.InputStream |
getInputStream()
Returns the InputStream to read from the remote side. |
java.io.OutputStream |
getOutputStream()
Returns the OuputStream to write to the remote side. |
java.lang.Object |
getRemoteAddress()
Returns the address of the remote host as appropriate object. |
java.lang.String |
getRemoteName()
Returns the name of the remote host in appropriate representation, or null if it could not be resolved. |
boolean |
isOpen()
Returns true if the unterlying connection is open in both directions, false otherwise. |
boolean |
open()
(Re-)Opens the underlying connection. |
| Method Detail |
|---|
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getRemoteName()
java.lang.Object getRemoteAddress()
throws java.io.IOException
java.io.IOException
boolean open()
throws java.io.IOException
java.io.IOExceptionvoid close()
boolean isOpen()
boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||