/// <summary> /// Sends a text message or a link to the end point /// </summary> /// <param name="message"></param> /// <param name="endPoint"></param> public static void SendTextMessage(string message, IPEndPoint endPoint) { int s = 2; TextTransferPacket ttp = new TextTransferPacket(message); NetComm.SendByteArray(ttp.ToByteArray(), endPoint); }
private static void ProcessTextTransferPacket(TextTransferPacket ttp) { InboundTextTransferFinished?.Invoke(null, new InboundTextTransferEventArgs(ttp.GetTextMessage())); }