// Writes the gesture to the sockets. Uses gestures.ToString() method private static void SendToSockets(Pooled gesture, ProcessorState state) { string message = gesture.ToString(); Console.WriteLine("Sending: {0}", message); foreach (var socket in state.all_sockets_.ToList()) socket.Send(message); }