Location: PHPKode > projects > Laffer > modules/server/PROTOCOL_v01.txt
IM_FRONT_SERVER

> VER PROTO_VER CLIENT_ID
< VER OK
> USR slaff
< USR slaff MD5 md5_hash
> PASS MD5(pass.md5_hash)
< PASS OK
< GOTO SERVER:PORT MAGIC_COOKIE
<< close connection >>

IM_MESSAGE_SERVER

> USR slaff MAGIC_COOKIE
1. < USR OK
2. < USR NOK 
   << close  connection >>
> GCL CONTACT_LIST_ID
1) < GCL CONTACT_LIST_ID 0
2) < GCL NEW_CONTACT_LIST_ID ITEMS_TO_FOLLOW ENCODING
< CLG Testowa GROUP_ID
< CLU slaff USER_ID GRPOUP_ID_1, ... ,GROUP_ID_X <-- special groups  "-1" - Awaiting Authorization
															   0 - Visible
															   1 InVisible
															   2 Ignore
> STAT ONL
< STAT ONL
> MSG TYPE ENC FROM LENGTH_IN_BITS MESSAGE_CONTENT  
< MSG text utf8 hide@address.com 10 1234567890
> ADDU galfy GROUP_ID
Server sends to galfy:
	> ALAU slaff               // ALlow Adding User
	1. < ALAU slaff OK
	2. < ALAU slaff NOK
> ADDG GROUP_NAME
< ADDG GROUP_NAME ID
> DELU galfy
1. < DELU galfy OK
2. < ................... NOK
> DELG GROUP_ID
1. < DELG GROUP_ID OK
2. < .............................. NOK
> MSG alert utf8 BGDATE.COM 20 New Message FROM XYZ


> QUIT
<< close connection >>
Return current item: Laffer