code for assignment jokeserver.
Extra:
--Support both Short Connection and Persistent Connection mode for client. But Admin client only support persist connection see head comment 6.a for more details
--Support share client id in multiple concurrent connection. eg. more than one client can use same client id.see head comment 6.b and 6.c for more details