示例#1
0
 public HandInputServer(String ipAddress, Int32 port)
 {
     server = new WebSocketServer(ipAddress, port);
       server.ClientConnected += new ClientConnectedEventHandler(OnClientConnected);
       handInputEngine = new HandInputEngine();
       handInputEngine.HandInputEvent += new HandInputEventHandler(OnHandInputEvent);
 }
示例#2
0
 private void OnClientConnected(WebSocketServer sender, ClientConnectedEventArgs e)
 {
     connections.Add(e.Client);
 }
示例#3
0
 public GestureServer(String ipAddress, int port)
 {
     server = new WebSocketServer(ipAddress, port);
       server.ClientConnected += OnClientConnected;
 }
示例#4
0
 private void Start()
 {
     webSocket = new WebSocketServer();
     webSocket.StartServer();
 }