From: Oredope, A. <ao...@es...> - 2008-01-29 17:02:00
|
Thanks a lot for your quick response. =20 I will like your help in defining some parameters in the simulation and they are as follows =20 Time: The time the overlay has been running for? Peers: The Amount of peers in the overlay? Sessions: The amount of active sessions in the overlay? (I discovered that when there a just 2 peers there are also 2 sessions, why is this so?) Packets sent: Is this the total amount of packet sent in the overlay or is it by the bootstrap (1st ) peer ? if it the total amount of packets is there a way narrowing down the average ammont of packets sent by each peer Received: Same question as sent =20 I look forward to hearing from you. =20 Thanks a lot once again for your help. =20 Regards, =20 Tola =20 =20 From: stefano [mailto:st....@gm...]=20 Sent: 29 January 2008 12:47 To: Oredope, Adetola Cc: sip...@li... Subject: Re: [Sipdht-devel] results for gsim-sipdht2 =20 If you mean how to log libxpp and libsipdht2 messages to a file it's not implemented, however you can add yourself the following code somewhere in gsim-sipdht2.c #include <sofia-sip/su_log.h> extern su_log_t xpp_log[]; extern su_log_t sipdht_log[]; static void log_handler(void *logarg, char const *format, va_list ap) { static FILE *log =3D NULL; if (!log) log =3D fopen("/tmp/sim.log", "a+"); vfprintf(log, format, ap); fflush(log); =20 } then in main() just before gtk_main() add: su_log_set_level(xpp_log, 8); su_log_redirect(xpp_log, log_handler, NULL); su_log_set_level(sipdht_log, 8); su_log_redirect(sipdht_log, log_handler, NULL); Ciao, Stefano 2008/1/29, Oredope, Adetola <ao...@es...>: I know I have asked this earlier on but I was kind of unclear =20 I will like to find out if there is way I can collect the results of the simulator into a file or out put it to command line. =20 Regards =20 Adetola Oredope =20 Pervasive Networks and Services Research Group, University of Essex, Department of Electronic Systems Engineering, Wivenhoe Park, Colchester=20 CO4 3SQ=20 United Kingdom http://www.essex.ac.uk/ese/research/pervasivenetworks/ =20 --- Never walk away from someone who deserves help; your hand is God's hand for that person. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sipdht-devel mailing list Sip...@li... https://lists.sourceforge.net/lists/listinfo/sipdht-devel =20 |