예제 #1
0
        /// <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);
        }
예제 #2
0
 private static void ProcessTextTransferPacket(TextTransferPacket ttp)
 {
     InboundTextTransferFinished?.Invoke(null, new InboundTextTransferEventArgs(ttp.GetTextMessage()));
 }