public interface MultiConnectionSocket
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Adds the connection event listener.
|
void |
bindBroadcaster()
Binds the broadcaster to the local host and the broadcaster port in
AbstractSocketConnector. |
boolean |
canBroadcast()
Returns true if this instance has been configured for broadcasting.
|
void |
clearConnectionEventListeners()
Clear connection event listeners.
|
EspChannel |
getChannel(int channelNumber)
Returns the
EspChannel representation specified by the channel
number. |
java.util.List<EspChannel> |
getChannels()
Returns the
EspChannel representations processed by the
implementation. |
int |
getNumChannels()
Returns the number of channels.
|
boolean |
isBound()
Returns true if the broadcaster is bound.
|
boolean |
isConnected()
Returns true if connected to the
AbstractMultiConnectionSocket
socket. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes the connection event listener.
|
void |
start()
Connects to the socket.
|
void |
stop()
Closes the connection to the
AbstractMultiConnectionSocket socket. |
void |
unbindBroadcaster()
Unbinds the broadcaster.
|
void addConnectionEventListener(ConnectionEventListener listener)
listener - the listenervoid removeConnectionEventListener(ConnectionEventListener listener)
listener - the listenervoid clearConnectionEventListeners()
void start()
throws MultiConnectionSocketException
MultiConnectionSocketException - if already connected or an unexpected error occursvoid stop()
AbstractMultiConnectionSocket socket.boolean isConnected()
AbstractMultiConnectionSocket
socket.void bindBroadcaster()
throws java.io.IOException
AbstractSocketConnector.java.io.IOException - Signals that an I/O exception has occurred.AbstractSocketConnectorvoid unbindBroadcaster()
AbstractSocketConnectorboolean isBound()
AbstractSocketConnectorboolean canBroadcast()
int getNumChannels()
java.util.List<EspChannel> getChannels()
EspChannel representations processed by the
implementation.EspChannel getChannel(int channelNumber)
EspChannel representation specified by the channel
number.channelNumber - the channel number