// Very simple code to understand how tlcc works #include #include #include #include #include #include using namespace std; int main (int argc, char *argv[]) { glocal int ret = -1; glocal.ret = (argc,argv); setproginfo ("obj2","0.0","..."); int ret = -1; struct HANDLE_INFO: public ARRAY_OBJ{ unsigned count = 0; }; ("4000",10); info.data = new HANDLE_INFO; HANDLE_INFO *n = (HANDLE_INFO*)info.data; n->count++; sendf ("echo %s\n",line); sendf ("count=%u\n",n->count); if (strcmp(line,"quit")==0){ endclient = true; }else if (strcmp(line,"end")==0){ endserver = true; } o.loop(); return ret; return glocal.ret; }