예제 #1
0
        public CommWin()
        {
            InitializeComponent();

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

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