Exemple #1
0
        public CommWin()
        {
            InitializeComponent();

            _state = State.IDLE;
            _wrap = new SocketWrap(Connected, Accepted, Received, Disconnected, Error);
            _proto = new Protocol(ReceivedMessage);

            UpdateCtrls();
            this.Show();
        }
Exemple #2
0
 public void SendMessage(string msg, SocketWrap sw)
 {
     sw.SendData('M' + msg);
 }