public override void ReceivePacketSpec(StreamIO streamIO, AES aes) { name = Encoding.Unicode.GetString(ReceiveBytes(aes)); time = DateTime.Parse(Encoding.Unicode.GetString(ReceiveBytes(aes))); cpuusage = Encoding.Unicode.GetString(ReceiveBytes(aes)); ramusage = Encoding.Unicode.GetString(ReceiveBytes(aes)); }
public override void SendPacketSpec(StreamIO streamIO, AES aes) { SendBytes(Encoding.Unicode.GetBytes(name), aes); SendBytes(Encoding.Unicode.GetBytes(time.ToString()), aes); SendBytes(Encoding.Unicode.GetBytes(cpuusage), aes); SendBytes(Encoding.Unicode.GetBytes(ramusage), aes); }
public override void ReceivePacketSpec(StreamIO streamIO, AES aes) { cliInput = Encoding.Unicode.GetString(ReceiveBytes(aes)); consoleWidth = (int)DeSer(ReceiveBytes(aes), typeof(Int32)); serverAnswer = Encoding.Unicode.GetString(ReceiveBytes(aes)); }
public abstract void ReceivePacketSpec(StreamIO streamIO, AES aes);
public override void SendPacketSpec(StreamIO streamIO, AES aes) { SendBytes(Encoding.Unicode.GetBytes(cliInput), aes); SendBytes(Ser(consoleWidth), aes); SendBytes(Encoding.Unicode.GetBytes(serverAnswer), aes); }
public Packet(NetworkStream stream, uint packetType) { _streamIO = new StreamIO(stream); _packetType = packetType; }
public abstract void SendPacketSpec(StreamIO streamIO, AES aes);
public override void ReceivePacketSpec(StreamIO streamIO, AES aes) { serverHeader = ReceiveBytes(aes); serverVersion = ReceiveBytes(aes); }
/* TYPE UINT * * NullPacket | 0 * DataPacket | 1 * LoginPacket | 2 * SSLPacket | 3 * CLIPacket | 4 * ServerInfoPacket | 5 * */ public Packet(Stream stream) { _streamIO = new StreamIO(stream); }
public override void SendPacketSpec(StreamIO streamIO, AES aes) { SendBytes(serverHeader, aes); SendBytes(serverVersion, aes); }
public override void ReceivePacketSpec(StreamIO streamIO, AES aes) { data = ReceiveBytes(aes); }
public override void SendPacketSpec(StreamIO streamIO, AES aes) { SendBytes(data, aes); }
public override void ReceivePacketSpec(StreamIO streamIO, AES aes) { data = Encoding.Unicode.GetString(ReceiveBytes(aes)); }
public override void SendPacketSpec(StreamIO streamIO, AES aes) { SendBytes(Encoding.Unicode.GetBytes(data), aes); }