Last change
on this file since 27856 was 27856, checked in by vboxsync, 15 years ago |
export NetworkServices/NAT and NetworkServices/NetLib to OSE
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | /* $Id: VBoxNetBaseService.h 27856 2010-03-31 08:56:49Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxNetUDP - IntNet Client Library.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2009 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * Sun Microsystems, Inc. confidential
|
---|
10 | * All rights reserved
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef ___VBoxNetBaseService_h___
|
---|
14 | #define ___VBoxNetBaseService_h___
|
---|
15 | class VBoxNetBaseService
|
---|
16 | {
|
---|
17 | public:
|
---|
18 | VBoxNetBaseService();
|
---|
19 | virtual ~VBoxNetBaseService();
|
---|
20 | int parseArgs(int argc, char **argv);
|
---|
21 | int tryGoOnline(void);
|
---|
22 | void shutdown(void);
|
---|
23 | virtual void usage(void) = 0;
|
---|
24 | virtual void run(void) = 0;
|
---|
25 |
|
---|
26 | inline void debugPrint( int32_t iMinLevel, bool fMsg, const char *pszFmt, ...) const;
|
---|
27 | void debugPrintV(int32_t iMinLevel, bool fMsg, const char *pszFmt, va_list va) const;
|
---|
28 | public:
|
---|
29 | /** @name The server configuration data members.
|
---|
30 | * @{ */
|
---|
31 | std::string m_Name;
|
---|
32 | std::string m_Network;
|
---|
33 | std::string m_TrunkName;
|
---|
34 | INTNETTRUNKTYPE m_enmTrunkType;
|
---|
35 | RTMAC m_MacAddress;
|
---|
36 | RTNETADDRIPV4 m_Ipv4Address;
|
---|
37 | /** @} */
|
---|
38 | /** @name The network interface
|
---|
39 | * @{ */
|
---|
40 | PSUPDRVSESSION m_pSession;
|
---|
41 | uint32_t m_cbSendBuf;
|
---|
42 | uint32_t m_cbRecvBuf;
|
---|
43 | INTNETIFHANDLE m_hIf; /**< The handle to the network interface. */
|
---|
44 | PINTNETBUF m_pIfBuf; /**< Interface buffer. */
|
---|
45 | /** @} */
|
---|
46 | /** @name Debug stuff
|
---|
47 | * @{ */
|
---|
48 | int32_t m_cVerbosity;
|
---|
49 | /** @} */
|
---|
50 | };
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.