Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function _5kConnectionData(param1:ProgressEvent) : void
- {
- var _loc4_:Array = null;
- var _loc2_:int = this._port5kSocket.bytesAvailable;
- if(_loc2_ <= 0)
- {
- return;
- }
- var _loc3_:String = this._port5kSocket.readMultiByte(_loc2_,"UTF-8");
- Log.custom(TAG,"port5k response: " + _loc3_);
- if(_loc3_.indexOf("[S_VERSION]") == 0)
- {
- _loc4_ = _loc3_.split("|");
- if(_loc4_.length >= 2)
- {
- Version.setServerVersion(_loc4_[1]);
- }
- this._port5kSocket.removeEventListener(ProgressEvent.SOCKET_DATA,this._5kConnectionData);
- this._connectedToServer(this._port5kSocket);
- this._disposeSocket(this._port80Socket);
- this._port80Socket = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement