VBoxNetBaseService.h revision 7cfa8a9bf6560b261a92c25fe36ad470af76a48e
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync * VBoxNetUDP - IntNet Client Library.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2009-2011 Oracle Corporation
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * available from http://www.virtualbox.org. This file is free software;
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * you can redistribute it and/or modify it under the terms of the GNU
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * General Public License (GPL) as published by the Free Software
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync int syncEnter() { return RTCritSectEnter(&this->m_csThis);}
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync int syncLeave() { return RTCritSectLeave(&this->m_csThis);}
b73558f2e00416e86d24d6704100021758131e9bvboxsync int sendBufferOnWire(PCINTNETSEG pSg, int cSg, size_t cbBuffer);
b73558f2e00416e86d24d6704100021758131e9bvboxsync virtual int parseOpt(int rc, const RTGETOPTUNION& getOptVal) = 0;
b73558f2e00416e86d24d6704100021758131e9bvboxsync virtual bool isMainNeeded() const { return m_fNeedMain; }
b73558f2e00416e86d24d6704100021758131e9bvboxsync /* VirtualBox instance */
b73558f2e00416e86d24d6704100021758131e9bvboxsync * Print debug message depending on the m_cVerbosity level.
b73558f2e00416e86d24d6704100021758131e9bvboxsync * @param iMinLevel The minimum m_cVerbosity level for this message.
b73558f2e00416e86d24d6704100021758131e9bvboxsync * @param fMsg Whether to dump parts for the current DHCP message.
b73558f2e00416e86d24d6704100021758131e9bvboxsync * @param pszFmt The message format string.
b73558f2e00416e86d24d6704100021758131e9bvboxsync * @param ... Optional arguments.
b73558f2e00416e86d24d6704100021758131e9bvboxsync void debugPrint(int32_t iMinLevel, bool fMsg, const char *pszFmt, ...) const
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync virtual void debugPrintV(int32_t iMinLevel, bool fMsg, const char *pszFmt, va_list va) const;
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync /** @name The server configuration data members.
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync /** @name The network interface
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync INTNETIFHANDLE m_hIf; /**< The handle to the network interface. */
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync /** @name Debug stuff
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync /* cs for syncing */
0e1eea910a209a7a8edeed71c9be066a02f59202vboxsync /* Controls whether service will connect SVC for runtime needs */