public class MxIPBroadcastTransceiver extends IPBroadcastTransceiver implements IMultiplexPlugin
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVEREVENT_TRANCEIVER_DISABLED, EVENT_TRANCEIVER_ENABLED| Constructor and Description |
|---|
MxIPBroadcastTransceiver()
Creates a transceiver that binds to any address.
|
MxIPBroadcastTransceiver(byte[] address)
Creates a transceiver that binds to the specified address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptConnector(MultiplexFactory source,
IStreamConnector connector)
Called by a multiplexer whenever a new connector is opened due to remote
system request.
|
void |
closeMultiplexer(MultiplexFactory multiplexer)
Called by a multiplexer whenever the multiplexer is closed.
|
PluginDescription |
getPluginDescription()
Returns the plug-in description of the transceiver.
|
IPluginManager |
getPluginManager()
Returns a reference to the plug-in manager as required by the
multiplexer plug-in interface.
|
IStreamConnector |
openSession(ISession session)
Called whenever a connection should be established.
|
void |
setTransceiverManager(ITransceiverManager manager)
Sets the transceiver manager to a wrapper in order to enable the
interception of session accepts.
|
addTransceiverListener, getAddress, getNetwork, getPort, isEnabled, openGroup, perform, prepareSession, release, release, removeTransceiverListener, setAddress, setEnabled, setNetwork, start, stoppublic MxIPBroadcastTransceiver()
public MxIPBroadcastTransceiver(byte[] address)
address - A byte array of length 4 that contains the
ip address to bind to.public PluginDescription getPluginDescription()
getPluginDescription in interface IPlugingetPluginDescription in class IPBroadcastTransceiverpublic void acceptConnector(MultiplexFactory source, IStreamConnector connector)
acceptConnector in interface IMultiplexPluginsource - The multiplexer that received the request.connector - The connector that has been established by the multiplexer.public void closeMultiplexer(MultiplexFactory multiplexer)
closeMultiplexer in interface IMultiplexPluginmultiplexer - The multiplexer that closed the connection.public IStreamConnector openSession(ISession session) throws java.io.IOException
openSession in interface IStreameropenSession in class IPBroadcastTransceiversession - The session that contains the necessary data. The local
data object contains the port and the ip address of the remote system.java.io.IOException - Thrown if the connector could not be opened.public void setTransceiverManager(ITransceiverManager manager)
setTransceiverManager in interface ITransceiversetTransceiverManager in class IPBroadcastTransceivermanager - The real manager provided by the plug-in manager.public IPluginManager getPluginManager()
getPluginManager in interface IMultiplexPlugin