Example #1
0
 public void Inject(PacketType t, ICanSerialize p, int sockId)
 {
     //serialize the packet
     byte[] dataPacket = p.Serialize();
     Inject(t, dataPacket, sockId);
 }
Example #2
0
 public static byte[] Encode(PacketType type, ICanSerialize p)
 {
     //serialize the packet
     byte[] data = p.Serialize();
     return(Encode(type, data));
 }