コード例 #1
0
        public void Disconnect(string reasonKey)
        {
            conn.Send(Packets.Server_DisconnectReason, reasonKey);

            conn.Close();
            Server.OnDisconnected(conn);
        }
コード例 #2
0
 public void SendPacket(Packets packet, byte[] data, bool reliable = true)
 {
     conn.Send(packet, data, reliable);
 }