- 時間撮記:
- 2013-7-4 上午06:35:01 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.h
r46962 r46969 18 18 #ifndef ___VBoxNetBaseService_h___ 19 19 #define ___VBoxNetBaseService_h___ 20 21 20 #include <iprt/critsect.h> 22 21 class VBoxNetBaseService … … 33 32 int sendBufferOnWire(PCINTNETSEG pSg, int cSg, size_t cbBuffer); 34 33 void flushWire(); 35 36 34 virtual void usage(void) = 0; 37 virtual int run(void) = 0; 35 virtual void run(void) = 0; 36 virtual int init(void); 38 37 virtual int parseOpt(int rc, const RTGETOPTUNION& getOptVal) = 0; 39 38 40 virtual int init(void); 41 42 /* VirtualBox instance */ 43 ComPtr<IVirtualBox> virtualbox; 44 45 protected: 46 /** 47 * Print debug message depending on the m_cVerbosity level. 48 * 49 * @param iMinLevel The minimum m_cVerbosity level for this message. 50 * @param fMsg Whether to dump parts for the current DHCP message. 51 * @param pszFmt The message format string. 52 * @param ... Optional arguments. 53 */ 54 void debugPrint(int32_t iMinLevel, bool fMsg, const char *pszFmt, ...) const 55 { 56 if (iMinLevel <= m_cVerbosity) 57 { 58 va_list va; 59 va_start(va, pszFmt); 60 debugPrintV(iMinLevel, fMsg, pszFmt, va); 61 va_end(va); 62 } 63 } 64 65 virtual void debugPrintV(int32_t iMinLevel, bool fMsg, const char *pszFmt, va_list va) const; 66 39 inline void debugPrint( int32_t iMinLevel, bool fMsg, const char *pszFmt, ...) const; 40 void debugPrintV(int32_t iMinLevel, bool fMsg, const char *pszFmt, va_list va) const; 41 public: 67 42 /** @name The server configuration data members. 68 43 * @{ */ … … 74 49 RTNETADDRIPV4 m_Ipv4Address; 75 50 RTNETADDRIPV4 m_Ipv4Netmask; 51 /* cs for syncing */ 52 RTCRITSECT m_csThis; 76 53 /** @} */ 77 54 /** @name The network interface … … 89 66 private: 90 67 PRTGETOPTDEF getOptionsPtr(); 91 92 /* cs for syncing */93 RTCRITSECT m_csThis;94 95 68 /** @} */ 96 69 };
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器