public class MxIPMulticastTransceiver extends IPMulticastTransceiver implements IMultiplexPlugin
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
EVENT_TRANCEIVER_DISABLED, EVENT_TRANCEIVER_ENABLED
Constructor and Description |
---|
MxIPMulticastTransceiver()
Creates a transceiver that binds to any address.
|
MxIPMulticastTransceiver(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, getPort, isEnabled, openGroup, perform, prepareSession, release, release, removeTransceiverListener, setAddress, setEnabled, start, stop
public MxIPMulticastTransceiver()
public MxIPMulticastTransceiver(byte[] address)
address
- A byte array of length 4 that contains the
ip address to bind to.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin
getPluginDescription
in class IPMulticastTransceiver
public void acceptConnector(MultiplexFactory source, IStreamConnector connector)
acceptConnector
in interface IMultiplexPlugin
source
- The multiplexer that received the request.connector
- The connector that has been established by the multiplexer.public void closeMultiplexer(MultiplexFactory multiplexer)
closeMultiplexer
in interface IMultiplexPlugin
multiplexer
- The multiplexer that closed the connection.public IStreamConnector openSession(ISession session) throws java.io.IOException
openSession
in interface IStreamer
openSession
in class IPMulticastTransceiver
session
- 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 created.public void setTransceiverManager(ITransceiverManager manager)
setTransceiverManager
in interface ITransceiver
setTransceiverManager
in class IPMulticastTransceiver
manager
- The real manager provided by the plug-in manager.public IPluginManager getPluginManager()
getPluginManager
in interface IMultiplexPlugin