public interface NetService extends Connection, org.mbs.services.io.ConnectionNotifier
| Modifier and Type | Method and Description |
|---|---|
MultiplexedConnection |
getConnection(int id)
Returns existing multiplexed connection with the supplied Id or
null
if there is no active connection with such id. |
MultiplexedConnection[] |
getConnections()
Returns all currently opened multiplexed connections with the remote host in the scope of
this Net service.
|
P2PConnection |
getPoint2PointConnection()
Returns the underlying point-to-point connection which this Net service runs on.
|
java.lang.String |
getServiceName()
Returns the name of the Net service.
|
MultiplexedConnection |
openConnection()
Opens and returns a multiplexed connection to the Net service represented by this
NetService instance.
|
closejava.lang.String getServiceName()
P2PConnection getPoint2PointConnection()
MultiplexedConnection openConnection() throws java.io.IOException
java.io.IOException - if the connection could not be opened for some reason.MultiplexedConnection getConnection(int id) throws java.io.IOException
null
if there is no active connection with such id.id - the identifier of the multiplexed connectionjava.io.IOException - if error occured while returning the connection.MultiplexedConnection[] getConnections() throws java.io.IOException
java.io.IOException - if error occured while returning the connections.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.