Exemple #1
0
 public void send(Object o, Protocol.ChannelID channel)
 {
     //Todo move to a static list for each object (performance)
     Protocol.SerialInterface proc = Protocol.SerialInterface.Build(o.GetType());
     Protocol.ByteBuffer      buf  = new Protocol.ByteBuffer(1);
     proc.SerializePacket((uint)channel, o, buf);
     send(buf.GetArray(), buf.Length);
     Log.notify("Sent packet on channel " + ((Protocol.ChannelID)channel).ToString(), this);
 }