Example #1
0
        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();
        }
Example #2
0
 internal void SetState(IWinSocketState state)
 {
     this._currentState = state;
 }