mirror of
https://github.com/oliverbooth/TcpDotNet
synced 2024-11-09 23:05:41 +00:00
20 lines
395 B
C#
20 lines
395 B
C#
using TcpDotNet.Protocol;
|
|
|
|
namespace TcpDotNet.ListenerIntegrationTest;
|
|
|
|
[Packet(0x01)]
|
|
internal sealed class HelloPacket : Packet
|
|
{
|
|
public string Message { get; set; }
|
|
|
|
protected override void Deserialize(ProtocolReader reader)
|
|
{
|
|
Message = reader.ReadString();
|
|
}
|
|
|
|
protected override void Serialize(ProtocolWriter writer)
|
|
{
|
|
writer.Write(Message);
|
|
}
|
|
}
|