if (magic[0] != 'A' || magic[1] != 'M' || magic[2] != '2')
{
throw new AgentException("bad magic: " + new String(magic));
}
short op = dec.readUint8();
long seq = dec.readUint32();
log.debug("Message recieved: " + (char) op);
switch (op)
{
case 'a':
this.handleAgentAttach(seq, replyTo, dec);