mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 17: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,29 @@
|
||||
package it.gotoandplay.smartfoxserver.http
|
||||
{
|
||||
public class RawProtocolCodec implements IHttpProtocolCodec
|
||||
{
|
||||
|
||||
private static const SESSION_ID_LEN:int = 32;
|
||||
|
||||
public function RawProtocolCodec()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function encode(param1:String, param2:String) : String
|
||||
{
|
||||
return (param1 == null ? "" : param1) + param2;
|
||||
}
|
||||
|
||||
public function decode(param1:String) : String
|
||||
{
|
||||
var _loc2_:String = null;
|
||||
if(param1.charAt(0) == "#")
|
||||
{
|
||||
_loc2_ = param1.substr(1,32);
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user