# HG changeset patch # User riono # Date 1592908044 -32400 # Node ID a6f7466473f504a0a3449210339c29b76fb9125f # Parent f27db91a852e308b1680c64b18b0c082b3f82b59 add command diff -r f27db91a852e -r a6f7466473f5 datagear/command/Command.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datagear/command/Command.cs Tue Jun 23 19:27:24 2020 +0900 @@ -0,0 +1,5 @@ +namespace Christie_net.datagear.command { + public abstract class Command { + public CommandTy + } +} \ No newline at end of file diff -r f27db91a852e -r a6f7466473f5 datagear/command/CommandType.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datagear/command/CommandType.cs Tue Jun 23 19:27:24 2020 +0900 @@ -0,0 +1,16 @@ +namespace Christie_net.datagear.command { + public enum CommandType { + PUT, + TAKE, + PEEK, + REMOTETAKE, + REMOTEPEEK, + REPLY, + CLOSE, + FINISH + }; + + public static class CommandTypeEtx { + + } +} \ No newline at end of file diff -r f27db91a852e -r a6f7466473f5 datagear/dg/DataGears.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datagear/dg/DataGears.cs Tue Jun 23 19:27:24 2020 +0900 @@ -0,0 +1,29 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; + +namespace Christie_net.datagear.dg { + public class DataGears { + protected SortedDictionary>> dataGears = + new SortedDictionary>>(); + private object syncObject = new object(); + + public void Put(string key, DataGear dg) { + lock (syncObject) { + + } + } + + public object Peek(string key) { + return dataGears. + } + + public object GetData(Command cm) { + switch (cm.type) { + + } + } + + public void SetData() + } +} \ No newline at end of file