|
OpenNet
|
This class define the system level interface. More...
#include <System.h>
Classes | |
| struct | Config |
| System configuration. More... | |
| struct | Info |
| System information. More... | |
Public Member Functions | |
| virtual Status | GetConfig (Config *aOut) const =0 |
| Retrieve the configuration of the system. More... | |
| virtual Status | GetInfo (Info *aOut) const =0 |
| Retrieve the information about the system. More... | |
| virtual Status | SetConfig (const Config &aConfig)=0 |
| Modify the configuration of the system. More... | |
| virtual void | Delete () |
| This methode delete the instance. More... | |
| virtual Status | Adapter_Connect (Adapter *aAdapter)=0 |
| Connect an Adapter to the System. More... | |
| virtual unsigned int | Adapter_GetCount () const =0 |
| virtual Adapter * | Adapter_Get (unsigned int aIndex)=0 |
| virtual Adapter * | Adapter_Get (OpenNetK::Adapter_Type aType, unsigned int aIndex)=0 |
| virtual Adapter * | Adapter_Get (const unsigned char *aAddress, const unsigned char *aMask, const unsigned char *aMaskDiff)=0 |
| virtual Status | Display (FILE *aOut)=0 |
| Display. More... | |
| virtual OpenNet::Kernel * | Kernel_Get (unsigned int aIndex)=0 |
| Retrieve a Kernel. More... | |
| virtual unsigned int | Kernel_GetCount () const =0 |
| Retrieve the number of Kernel. More... | |
| virtual unsigned int | Processor_GetCount () const =0 |
| virtual Processor * | Processor_Get (unsigned int aIndex)=0 |
| virtual Status | Start (unsigned int aFlags)=0 |
| Start. More... | |
| virtual Status | Stop ()=0 |
| Stop. More... | |
Static Public Member Functions | |
| static OPEN_NET_PUBLIC System * | Create () |
| This static methode create an instance of the System class. More... | |
| static OPEN_NET_PUBLIC Status | Display (const Config &aConfig, FILE *aOut) |
| This static methode display the system configuration. More... | |
| static OPEN_NET_PUBLIC Status | Display (const Info &aInfo, FILE *aOut) |
| This static methode display the system information. More... | |
Static Public Attributes | |
| static OPEN_NET_PUBLIC const unsigned int | START_FLAG_LOOPBACK |
| Use this flag when adapters are physically connected to each other. If force the system to send packet to unblock reception operations. More... | |
This class define the system level interface.
|
pure virtual |
|
pure virtual |
| aIndex | The index of the adapter to get |
| NULL | Not found |
| Other | The address of the Adapter instance |
|
pure virtual |
| aType | See OpenNetK::Adapter_Type |
| aIndex | The index of the adapter to get |
| NULL | Not found |
| Other | The address of the Adapter instance |
|
pure virtual |
| aAddress | The Ethernet address to look for |
| aMask | The bit set to 1 indicate the bit that must match the address. |
| aMaskDiff | The bit set to 1 indicate the part of address that must be different. |
| NULL | Not found |
| Other | The address of the Adapter instance |
|
pure virtual |
|
static |
|
virtual |
This methode delete the instance.
|
static |
This static methode display the system configuration.
| aConfig | The configuration |
| aOut | The output stream |
| STATUS_OK | |
| STATUS_INVALID_REFERENCE | |
| STATUS_NOT_ALLOWER_NULL_ARGUMENT |
|
static |
This static methode display the system information.
| aInfo | The information |
| aOut | The output stream |
| STATUS_OK | |
| STATUS_INVALID_REFERENCE | |
| STATUS_NOT_ALLOWER_NULL_ARGUMENT |
|
pure virtual |
Display.
| aOut | The output stream |
| STATUS_OK |
|
pure virtual |
Retrieve the configuration of the system.
| aOut | The output space |
| STATUS_OK | |
| STATUS_NOT_ALLOWER_NULL_ARGUMENT |
|
pure virtual |
Retrieve the information about the system.
| aOut | The output space |
| STATUS_OK | |
| STATUS_NOT_ALLOWER_NULL_ARGUMENT |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| aIndex | The index of the Processor to get |
|
pure virtual |
|
pure virtual |
Modify the configuration of the system.
| aConfig | The configuration |
| STATUS_OK | |
| STATUS_INVALID_REFERENCE |
|
pure virtual |
Start.
| aFlags | START_FLAG_LOOPBACK |
| STATUS_OK |
|
pure virtual |
|
static |
Use this flag when adapters are physically connected to each other. If force the system to send packet to unblock reception operations.
1.8.9.1