| Package | Description |
|---|---|
| stella.net.gregor |
| Modifier and Type | Class and Description |
|---|---|
class |
CommandMessage
Extends a normal GREGOR message to be of the command type.
|
| Modifier and Type | Field and Description |
|---|---|
private Deque<Message> |
CommunicationHandler.outqueue
This is the dequeue used on output, no input queue necessary.
|
private Deque<Message> |
PacketServer.outqueue
This is the dequeue used on output, no input queue necessary.
|
| Modifier and Type | Method and Description |
|---|---|
protected Message |
PacketInputStream.gotPacket(int overall,
int offset,
short flags,
int id,
String src,
String dest,
byte[] data)
This method should be populated if multi-packet receiving is needed.
|
Message |
PacketInputStream.readMessage()
Reads a short GREGOR message from the stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MessageListener.messageReceived(Message m)
This is the call-back method invoked if a GREGOR message receiver
(typically listening on an input stream) decodes a valid gregor
message.
|
void |
GetterSetter.messageReceived(Message m)
If we receive a reply, we check if it belongs to one of the active
command cycles.
|
void |
EchoListener.messageReceived(Message m)
The message received is echoed on system.out.
|
boolean |
CommunicationHandler.putMessage(Message m)
We send a message by placing it into the outqueue and notifying the
sender thread.
|
boolean |
CommunicationCycle.replyReceived(Message m)
This method is called whenever a reply is received.
|
protected void |
PacketOutputStream.writeMultiPacket(Message m)
Not implemented (yet).
|
protected void |
PacketOutputStream.writeSinglePacket(Message m)
Method to write a short mesaage to the stream as a single package.
|