Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
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(sessionId:String, message:String) : String
{
return (sessionId == null ? "" : sessionId) + message;
}
public function decode(message:String) : String
{
var decoded:String = null;
if(message.charAt(0) == HttpConnection.HANDSHAKE_TOKEN)
{
decoded = message.substr(1,SESSION_ID_LEN);
}
return decoded;
}
}
}