Exemple #1
0
        public PipeMessage(PipeCommand cmd, PipeFunction fun, int sockid, byte[] data, int extra = 0)
        {
            Header = new PipeMessageHeader {
                Command  = cmd,
                Function = fun,
                SocketId = sockid,
                DataSize = data?.Length ?? 0,
                Extra    = extra,
            };

            Data = data;
        }
Exemple #2
0
 private PipeMessage(PipeMessageHeader hdr, byte[] data)
 {
     Header = hdr;
     Data   = data;
 }