public abstract class ConnectionChannel extends ChannelBase implements IInputChannel, IObserver<byte[]>
Constructor and Description |
---|
ConnectionChannel(IChannelManager manager,
IServerConnection connection) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLastErrorMessage() |
int |
getNumberOfReceivedMessages() |
boolean |
startChannel()
Starts the connection to the server, will only return after disconnection
Uses default IP and port
|
void |
stopChannel() |
void |
update(byte[] message)
Called to notify an observer about a state change
|
getConnectionState, getManager, isConnected
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionState, init, isConnected
public ConnectionChannel(IChannelManager manager, IServerConnection connection)
public boolean startChannel()
startChannel
in interface IChannel
public void stopChannel()
stopChannel
in interface IChannel
public void update(byte[] message)
IObserver
public java.lang.String getLastErrorMessage()
public int getNumberOfReceivedMessages()