Mercurial > hg > Database > Christie-sharp
view datagear/RemoteMessage.cs @ 40:7276e3429c99
fix NetworkStream Error
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 25 May 2021 03:02:38 +0900 |
parents | 9217d14cc220 |
children | e75e143b92e7 |
line wrap: on
line source
using System.Net.Sockets; using MessagePack; namespace Christie_net.datagear { [MessagePackObject] public class RemoteMessage { [Key("type")] public int type; // コマンドタイプ [Key("fromDmgName")] public string fromDmgName; // 送り元のDgmName REPLYの時に使用 [Key("key")] public string key; [Key("clazz")] public string clazz; [Key("data")] public byte[] data; public RemoteMessage(){} // for messagePack public RemoteMessage(int type, string fromDmgName, string key, string clazz, byte[] data) { this.type = type; this.fromDmgName = fromDmgName; this.key = key; this.clazz = clazz; this.data = data; } } }