Re: [Openvpn-devel] Windows and Shaper
Derek, Thanks for the function, I like it better than the previous function which was using timeGetTime (and therefore has wraparound problems). I've merged it in test26 which should be released soon. James Derek Burdick <de...@burdick.cc> said: > Here is the function. Don't forget to #DEFINE HAVE_GETTIMEOFDAY in > config-win32.h. Let me know what you think. > Derek Burdick > - Original Message - > From: "James Yonan" <j...@yonan.net> > To: "Derek Burdick" <de...@burdick.cc>; > <openvpn-devel@lists.sourceforge.net> > Sent: Tuesday, April 27, 2004 12:48 PM > Subject: Re: [Openvpn-devel] Windows and Shaper > > > > Derek Burdick <de...@burdick.cc> said: > > > > > I was browsing the online CVS repository and noticed the > > > config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. > When > > > I look in misc.c, I don't see the file. Is the latest version just not > > > checked in? I also implemented a gettimeofday for windows. It is based > on > > > QueryPerformanceCounter. If you are interested in this version let me > know. > > > If somebody knows the correct status of gettimeofday for the cvs code, I > > > would appreciate an update. > > > > Derek, > > > > Yes, I'd like to see your gettimeofday for Windows that uses > > QueryPerformanceCounter. OpenVPN 2.0 will have a gettimeofday function > for > > Windows so that --shaper and --mode server can be supported. > > > > James > > > > > --
Re: [Openvpn-devel] Windows and Shaper
Here is the function. Don't forget to #DEFINE HAVE_GETTIMEOFDAY in config-win32.h. Let me know what you think. Derek Burdick - Original Message - From: "James Yonan" <j...@yonan.net> To: "Derek Burdick" <de...@burdick.cc>; <openvpn-devel@lists.sourceforge.net> Sent: Tuesday, April 27, 2004 12:48 PM Subject: Re: [Openvpn-devel] Windows and Shaper > Derek Burdick <de...@burdick.cc> said: > > > I was browsing the online CVS repository and noticed the > > config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. When > > I look in misc.c, I don't see the file. Is the latest version just not > > checked in? I also implemented a gettimeofday for windows. It is based on > > QueryPerformanceCounter. If you are interested in this version let me know. > > If somebody knows the correct status of gettimeofday for the cvs code, I > > would appreciate an update. > > Derek, > > Yes, I'd like to see your gettimeofday for Windows that uses > QueryPerformanceCounter. OpenVPN 2.0 will have a gettimeofday function for > Windows so that --shaper and --mode server can be supported. > > James > > windows-gtod.diff Description: Binary data
Re: [Openvpn-devel] Windows and Shaper
Derek Burdicksaid: > I was browsing the online CVS repository and noticed the > config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. When > I look in misc.c, I don't see the file. Is the latest version just not > checked in? I also implemented a gettimeofday for windows. It is based on > QueryPerformanceCounter. If you are interested in this version let me know. > If somebody knows the correct status of gettimeofday for the cvs code, I > would appreciate an update. Derek, Yes, I'd like to see your gettimeofday for Windows that uses QueryPerformanceCounter. OpenVPN 2.0 will have a gettimeofday function for Windows so that --shaper and --mode server can be supported. James
Re: [Openvpn-devel] Windows and Shaper
I was greping the wrong directory. I found the windows implementation of gettimeofday in otime.c, contrary to the config-win32.h. Thanks! Derek Burdick - Original Message - From: "Derek Burdick" <de...@burdick.cc> To: <openvpn-devel@lists.sourceforge.net> Sent: Saturday, April 24, 2004 1:46 AM Subject: [Openvpn-devel] Windows and Shaper > I was browsing the online CVS repository and noticed the > config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. When > I look in misc.c, I don't see the file. Is the latest version just not > checked in? I also implemented a gettimeofday for windows. It is based on > QueryPerformanceCounter. If you are interested in this version let me know. > If somebody knows the correct status of gettimeofday for the cvs code, I > would appreciate an update. > > Thanks, > Derek Burdick > > > > --- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > ___ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel >
[Openvpn-devel] Windows and Shaper
I was browsing the online CVS repository and noticed the config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. When I look in misc.c, I don't see the file. Is the latest version just not checked in? I also implemented a gettimeofday for windows. It is based on QueryPerformanceCounter. If you are interested in this version let me know. If somebody knows the correct status of gettimeofday for the cvs code, I would appreciate an update. Thanks, Derek Burdick