예제 #1
0
 public void Send <T>(int serverClientId, T value)
 {
     if (serverClientId < 0)
     {
         throw new Exception("Negative ids are reserved for SocketFlow");
     }
     Send(serverClientId, server.GetData(value));
 }
예제 #2
0
        public void Send <T>(int serverClientId, T value)
        {
            if (serverClientId < 0)
            {
                throw new Exception("Negative ids are reserved for SocketFlow");
            }
            var data = server.GetData(value);

            foreach (var client in clients)
            {
                client.Send(serverClientId, data);
            }
        }