/// <summary> /// Send a message (object) to all connected clients. /// </summary> /// <param name="message">Message object to send</param> /// <param name="connectedSockets">A list of connected Sockets</param> /// <param name="ignoreAuth">False if the message should only be sent to authed clients</param> public static void Send(IMessage message, ref List <AsyncSocket> connectedSockets, bool ignoreAuth) { if (message == null) { return; } foreach (AsyncSocket socket in connectedSockets) { SendMessageToClient.Send(message, socket, ignoreAuth); } }
public static void Send(AsyncSocket client) { SendMessageToClient.Send(WifiRemotePlugin.MessageStatus, client); SendMessageToClient.Send(new MessageVolume(), client); // If we are playing a file send detailed information about it /*if (g_Player.Playing) * { * SendMessageToClient.Send(this.nowPlayingMessage, client); * }*/ // TODO: reimplement // Send facade info to client /*SendListViewStatusToClient(client); * * // Inform client about open dialogs * if (MpDialogsHelper.IsDialogShown) * { * MessageDialog msg = MpDialogsHelper.GetDialogMessage(MpDialogsHelper.CurrentDialog); * SendMessageToClient(msg, client); * }*/ }