Go to the documentation of this file.
33 filename =
new char [strlen(file)+1];
44 if(
fp != NULL) fclose((FILE *)
fp);
74 cptr = strchr(buf,
'\n');
75 if(cptr != NULL) *cptr =
'\0';
77 if(buf[0] <
' ')
return "";
90 char name[1024],time[50];
94 strcpy(time,t.
getTimeString()); time[10] =
'_'; time[13] =
'_'; time[16] =
'\0';
97 strcat(name,
".rlEventLog");
100 fp = (
void *) fopen(name,
"w",
"shr=get");
102 fp = (
void *) fopen(name,
"w");
107 fprintf((FILE *)
fp,
"%s",event);
139 thread = worker_data->
thread;
144 ret = socket->
readStr(message,
sizeof(message)-1);
162 socket =
new rlSocket(
"localhost",port,0);
167 worker_data.
thread = thread;
189 if(
port <= 0)
return;
190 if(
port >= 256*256)
return;