|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.util.RemoteTCPConnection
public class RemoteTCPConnection
This is a private implementation of RemoteConnection for TCP.
| Constructor Summary | |
|---|---|
RemoteTCPConnection(java.net.Socket s)
Only stores the Socket reference s in socket. |
|
| Method Summary | |
|---|---|
void |
close()
Implementation of RemoteConnection.close. |
boolean |
equals(java.lang.Object other)
Implementation of equals, comparing the target IP address and target port. |
java.io.InputStream |
getInputStream()
Implementation of RemoteConnection.getInputStream. |
java.io.OutputStream |
getOutputStream()
Implementation of RemoteConnection.getOutputStream. |
java.lang.Object |
getRemoteAddress()
Implementation of RemoteConnection.getRemoteAddress. |
java.lang.String |
getRemoteName()
Implementation of RemoteConnection.getRemoteName. |
java.net.Socket |
getSocketReference()
Returns the underlying reference to the Socket object. |
boolean |
isOpen()
Implementation of RemoteConnection.isOpen. |
boolean |
open()
Implementation of RemoteConnection.open, will always return false in this implementation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteTCPConnection(java.net.Socket s)
| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface RemoteConnectionjava.io.IOExceptionRemoteConnection.getInputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface RemoteConnectionjava.io.IOExceptionRemoteConnection.getOutputStream
public java.lang.Object getRemoteAddress()
throws java.io.IOException
getRemoteAddress in interface RemoteConnectionjava.io.IOExceptionRemoteConnection.getRemoteAddresspublic java.lang.String getRemoteName()
getRemoteName in interface RemoteConnectionRemoteConnection.getRemoteName
public boolean open()
throws java.io.IOException
open in interface RemoteConnectionjava.io.IOExceptionRemoteConnection.openpublic void close()
close in interface RemoteConnectionRemoteConnection.closepublic boolean isOpen()
isOpen in interface RemoteConnectionpublic java.net.Socket getSocketReference()
public boolean equals(java.lang.Object other)
equals in interface RemoteConnectionequals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||