mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 01:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,50 @@
|
||||
package it.gotoandplay.smartfoxserver.util
|
||||
{
|
||||
import flash.events.ErrorEvent;
|
||||
import flash.events.SecurityErrorEvent;
|
||||
|
||||
public class FailCode
|
||||
{
|
||||
|
||||
public static const TYPE_SOCKET:int = 1;
|
||||
|
||||
public static const TYPE_BLUEBOX:int = 2;
|
||||
|
||||
public static const PHASE_INIT:int = 256;
|
||||
|
||||
public static const PHASE_CONNECTED:int = 512;
|
||||
|
||||
public static const REASON_SECURITY:int = 65536;
|
||||
|
||||
public static const REASON_IO:int = 131072;
|
||||
|
||||
public static const REASON_PIN:int = 262144;
|
||||
|
||||
public static const REASON_API:int = 524288;
|
||||
|
||||
public static const REASON_POLL:int = 1048576;
|
||||
|
||||
public static const REASON_UNSUPPORTED:int = 2097152;
|
||||
|
||||
public function FailCode()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function build(param1:int, param2:int, param3:int) : int
|
||||
{
|
||||
return param1 | param2 | param3;
|
||||
}
|
||||
|
||||
public static function getReasonFromEvent(param1:ErrorEvent) : int
|
||||
{
|
||||
return param1 is SecurityErrorEvent ? 65536 : 131072;
|
||||
}
|
||||
|
||||
public static function getTypeFromConnectionMode(param1:String) : int
|
||||
{
|
||||
return param1 == "http" ? 2 : 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user