public void Init() { this._initState = new WinSocketInitState(this); this._connectState = new WinSocketConnectState(this); this._readState = new WinSocketReadState(this); this._closeState = new WinSocketCloseState(this); SetState(_initState); Start(); }
internal void SetState(IWinSocketState state) { this._currentState = state; }