/* Socket close command handler function. Close client socket.  */
void disconnect_cmd_handler(void *pMsg)
/* Socket close command handler function. Close client socket.  */
void disconnect_cmd_handler(void *pMsg)
{
	if (tcp_client_socket >= 0) {
		printf("Close client socket to disconnect.\r\n");
		close(tcp_client_socket);
		tcp_client_socket = -1;
	}
	tcp_connected = 0;
}