|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.iperg.part.core.IpConnection org.iperg.part.core.IpTcpConnection
public class IpTcpConnection
The IpTcpConnection
class implements a PART Tcp
protocol connection.
Field Summary |
---|
Fields inherited from class org.iperg.part.core.IpConnection |
---|
BROKEN, CLOSED_LOCALLY, CLOSED_REMOTELY, CONNECTED, CONNECTING, LISTEN, UNCONNECTED |
Constructor Summary | |
---|---|
IpTcpConnection()
Create an unconnected Tcp connection object |
Method Summary | |
---|---|
protected boolean |
_outgoingEventsAreCached()
Check if events sent via the send method are cached locally. |
protected void |
close()
Close the connection |
protected IpConnection |
protoAccept()
Accept a incoming connection on the server socket opened by protoListen. |
protected void |
protoConnect(IpUrl url)
Connect to a network address represented by an url. |
protected IpUrl |
protoListen(IpUrl url)
Start listening for incoming connections on a local network address represented by an url. |
Methods inherited from class org.iperg.part.core.IpConnection |
---|
_send, getConnectionUrl, getRemoteProcessId, getSilence, getStatus, getTotalBytesReceived, getTotalBytesSent, getUrl, notifyBrokenConnection, notifyBytesReceived, notifyBytesSent, notifyReceivedEvent, run, setInputStream, setOutputStream, setUrl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Constructor Detail |
---|
public IpTcpConnection()
Method Detail |
---|
protected void protoConnect(IpUrl url) throws IpInvalidUrlException, java.io.IOException
protoConnect
in class IpConnection
url
- A url representing a remote address
IpInvalidUrlException
- if the url protocol matches
the connection factory protocol but url is somehow invalid,
e.g., doesn't identify a remote address
java.io.IOException
- if a factory specific error occuredprotected IpUrl protoListen(IpUrl url) throws IpInvalidUrlException, java.io.IOException
protoListen
in class IpConnection
url
- A url identifying a local address
IpInvalidUrlException
- if the url parameter is
invalid, e.g., doesn't identify a local address
java.io.IOException
- if a protocol specific error occuredprotected IpConnection protoAccept() throws java.io.IOException
protoAccept
in class IpConnection
java.io.IOException
protected void close() throws java.io.IOException
close
in class IpConnection
java.io.IOException
- if the close failed for some reasonprotected boolean _outgoingEventsAreCached()
_outgoingEventsAreCached
in class IpConnection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |