CMD_ON_CONNECT
CMD_ON_CONNECT = 1
Gateway 与 Worker 间通讯的二进制协议
struct GatewayProtocol { unsigned int pack_len, unsigned char cmd,//命令字 unsigned int local_ip, unsigned short local_port, unsigned int client_ip, unsigned short client_port, unsigned int connection_id, unsigned char flag, unsigned short gateway_port, unsigned int ext_len, char[ext_len] ext_data, char[pack_length-HEAD_LEN] body//包体 } NCNnNnNCnN