private static void TheServer_MessageReceived(object sender, Message e) { theLogger.Info(e.ClientID + " send message" + (e.ListTopic.Count > 0 ? " on '" + FedNetWorker.getTopicByList(e.ListTopic) + "' " : " ") + "(" + e.Payload.Length + " bytes)"); if (e.ListTopic.Count > 2) { if (e.ListTopic[0] == "request" && e.ListTopic[1] == "list" && e.ListTopic[2] == "client" && e.getStringPayload() == "ALL") { theServer.sendMessage(e.ClientID, "listClient", FedNetWorker.getTopicByList(theServer.getListClient(true), "|")); } } }
private static void TheClient_MessageReceived(object sender, Message e) { Console.WriteLine("topic '" + (e.ListTopic.Count > 0 ? FedNetWorker.getTopicByList(e.ListTopic) : "none") + "' said : " + e.getStringPayload()); }