public interface MultiplexedConnection extends StreamConnection, org.mbs.services.io.ConnectionNotifier
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionId()
Returns the unique identifier of this connection in the scope of the P2PConnection and the NetService.
|
NetService |
getNetService()
Returns the underlying Net service.
|
P2PConnection |
getPoint2PointConnection()
Returns the underlying point-to-point connection.
|
boolean |
isOriginator()
Returns
true if this multiplexed connection was initiated by the local host or
false if it is accepted from the remote host. |
void |
setDataListener(DataReceiveListener listener)
Sets the listener which will be notified when some data becomes available for reading
on this connection.
|
openDataInputStream, openInputStreamopenDataOutputStream, openOutputStreamcloseint getConnectionId()
boolean isOriginator()
true if this multiplexed connection was initiated by the local host or
false if it is accepted from the remote host. Note, that this could be different
than the getPoint2PointConnection().isOriginator().P2PConnection getPoint2PointConnection()
NetService getNetService()
void setDataListener(DataReceiveListener listener)
listener - the listener instance.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.