Restructured cclTcp.c