I think timestamp is the time the user logs on.
in the server code, here's how timestamp() is defined. its actually a structure.
Code:char * timestamp() { char *ctime(); static char buf[32]; time_t t, time(); t= time( (time_t *)(0)); strcpy(buf,ctime(&t)); buf[24]= '\0'; /* get rid of newline */ return(buf); }
whoami is is basically the address coming in. we initialize it by doing this:
Code:/* Process one connection */ len = sizeof(cliaddr); if( (connfd = accept(listenfd, (SA *) &cliaddr, &len)) < 0) { if(errno == EINTR) continue; exit(-1); } // WHOAMI INITIALIZED BELOW strcpy(whoami, inet_ntop(AF_INET,&cliaddr.sin_addr,buff,sizeof(buff)));
and line is what is equal to the stuff coming in, like the interface, password, version, etc.
so it writes all of that to stplog.
the thing is, the server is being run on UNIX, so i dont know howd id do that, unless Id have to go back and make a copy of the server.c program, convert that to make it run on windows and then see what happens. I dont know how else i could get access to stplog.



LinkBack URL
About LinkBacks


