public void SendData(PacketBase packet) { packet.Write(); byte[] data = packet.GetWriteData(); Packet p = new Packet(); p.Create(data); Peer.Send(0, ref p); }