예제 #1
0
파일: ClientSocket.cs 프로젝트: Czahyl/MOBA
 public void Send(Packet packet)
 {
     writer = new PacketWriter();
     packet.Write(writer);
     sock.Send(writer.Buffer());
 }
예제 #2
0
파일: ClientSocket.cs 프로젝트: Czahyl/MOBA
 public void Read(Packet packet)
 {
     reader = new PacketReader(new MemoryStream(packet.Buffer()));
     packet.Process(reader);
 }