From: Hannes F. <hfr...@us...> - 2007-09-28 09:59:21
|
Update of /cvsroot/openh323/pwlib/include/ptclib In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21573/include/ptclib Modified Files: psockbun.h Log Message: Allow to use PInterfaceMonitor without running monitor thread Index: psockbun.h =================================================================== RCS file: /cvsroot/openh323/pwlib/include/ptclib/psockbun.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** psockbun.h 25 Sep 2007 14:27:51 -0000 1.11 --- psockbun.h 28 Sep 2007 09:59:16 -0000 1.12 *************** *** 25,28 **** --- 25,31 ---- * * $Log$ + * Revision 1.12 2007/09/28 09:59:16 hfriederich + * Allow to use PInterfaceMonitor without running monitor thread + * * Revision 1.11 2007/09/25 14:27:51 hfriederich * Don't use STUN if interface filter is in use and STUN server is not *************** *** 111,115 **** PInterfaceMonitor( ! unsigned refreshInterval = DefaultRefreshInterval ); virtual ~PInterfaceMonitor(); --- 114,119 ---- PInterfaceMonitor( ! unsigned refreshInterval = DefaultRefreshInterval, ! BOOL runMonitorThread = TRUE ); virtual ~PInterfaceMonitor(); *************** *** 158,165 **** */ void SetInterfaceFilter(PInterfaceFilter * filter); protected: void UpdateThreadMain(); - virtual void RefreshInterfaceList(); void AddClient(PInterfaceMonitorClient *); --- 162,170 ---- */ void SetInterfaceFilter(PInterfaceFilter * filter); + + virtual void RefreshInterfaceList(); protected: void UpdateThreadMain(); void AddClient(PInterfaceMonitorClient *); *************** *** 176,179 **** --- 181,185 ---- PIPSocket::InterfaceTable currentInterfaces; + BOOL runMonitorThread; PTimeInterval refreshInterval; PMutex mutex; |