mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 17:37:50 -05:00
30 lines
675 B
ActionScript
30 lines
675 B
ActionScript
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_;
|
|
}
|
|
}
|
|
}
|
|
|