Пример #1
0
 private void OnDataSent(object sender, AsyncSocketClientArgs e)
 {
     AddToCommLog(e.Msg + " " + cnt, Color.Red);
 }
Пример #2
0
        private void OnDataRecieved(object sender, AsyncSocketClientArgs e)
        {
            string msg = e.Msg + Encoding.UTF8.GetString(e.Buffer);

            AddToCommLog(msg, Color.Blue);
        }
Пример #3
0
 private void OnDisconnected(object sender, AsyncSocketClientArgs e)
 {
     AddToCommLog(e.Msg, Color.Red);
 }