/// <summary> /// Sends the <see cref="NetMessage"/> to the specified <see cref="NetSocket"/>. /// </summary> public static void SendMessage(NetSocket socket, byte[] sessionId, NetMessage message) { if (sessionId == null) { throw new ArgumentNullException("sessionId"); } NetMessaging.Send(socket, message, sessionId); }
/// <summary> /// Sends the <see cref="NetMessage"/> to the specified <see cref="NetSocket"/>. /// </summary> public static void SendMessage(NetSocket socket, NetMessage message) { NetMessaging.Send(socket, message); }
/// <summary> /// Sends the <see cref="NetMessage"/> to the specified <see cref="NetSocket"/>. /// </summary> public static void SendMessage(int serviceNodeType, int serviceNodeId, byte[] sessionId, NetMessage message) { NetMessaging.Send(serviceNodeType, serviceNodeId, message, sessionId); }