public CommWin() { InitializeComponent(); _state = State.IDLE; _wrap = new SocketWrap(Connected, Accepted, Received, Disconnected, Error); _proto = new Protocol(ReceivedMessage); UpdateCtrls(); this.Show(); }
public void SendMessage(string msg, SocketWrap sw) { sw.SendData('M' + msg); }