Advertisement
klabacher

k

Oct 14th, 2019
2,801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       private function _5kConnectionData(param1:ProgressEvent) : void
  2.       {
  3.          var _loc4_:Array = null;
  4.          var _loc2_:int = this._port5kSocket.bytesAvailable;
  5.          if(_loc2_ <= 0)
  6.          {
  7.             return;
  8.          }
  9.          var _loc3_:String = this._port5kSocket.readMultiByte(_loc2_,"UTF-8");
  10.          Log.custom(TAG,"port5k response: " + _loc3_);
  11.          if(_loc3_.indexOf("[S_VERSION]") == 0)
  12.          {
  13.             _loc4_ = _loc3_.split("|");
  14.             if(_loc4_.length >= 2)
  15.             {
  16.                Version.setServerVersion(_loc4_[1]);
  17.             }
  18.             this._port5kSocket.removeEventListener(ProgressEvent.SOCKET_DATA,this._5kConnectionData);
  19.             this._connectedToServer(this._port5kSocket);
  20.             this._disposeSocket(this._port80Socket);
  21.             this._port80Socket = null;
  22.          }
  23.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement