OpenNet
|
This class define the adapter level interface. More...
#include <Adapter.h>
Classes | |
struct | Config |
The configuration. More... | |
Public Member Functions | |
virtual Status | GetAdapterNo (unsigned int *aOut)=0 |
This methode return the adapter numero. More... | |
virtual Status | GetConfig (Config *aOut) const =0 |
This methode return the configuration of the adapter. More... | |
virtual Status | GetInfo (Info *aOut) const =0 |
This methode returns the information about the adapter. More... | |
virtual const char * | GetName () const =0 |
This method returns the adapter's name. More... | |
virtual Status | GetState (State *aOut)=0 |
This methode returns the state of the adapter. More... | |
virtual bool | IsConnected ()=0 |
This methode indicate if the adapter is connected to a system. More... | |
virtual bool | IsConnected (const System &aSystem)=0 |
This methode indicate if the adapter is connected to the system. More... | |
virtual Status | ResetInputFilter ()=0 |
This methode reset the input filter. More... | |
virtual Status | ResetProcessor ()=0 |
This methode reset the processor. More... | |
virtual Status | SetConfig (const Config &aConfig)=0 |
This methode set the configuration. More... | |
virtual Status | SetInputFilter (SourceCode *aSourceCode)=0 |
This methode set the input filter. More... | |
virtual Status | SetProcessor (Processor *aProcessor)=0 |
This methode associate a processor to the adapter. More... | |
virtual Status | Display (FILE *aOut) const =0 |
Display. More... | |
virtual Status | Event_RegisterCallback (Event_Callback aCallback, void *aContext)=0 |
Wait for event. More... | |
virtual Status | Packet_Send (const void *aData, unsigned int aSize_byte)=0 |
This methode send a packet. More... | |
virtual Status | Read (void *aOut, unsigned int aOutSize_byte, unsigned int *aInfo_byte)=0 |
This methode read data from the driver. More... | |
virtual Status | Tx_Disable ()=0 |
This methode disable packet transmit. More... | |
virtual Status | Tx_Enable ()=0 |
This methode enable packet transmit. More... | |
![]() | |
virtual Status | GetStatistics (unsigned int *aOut, unsigned int aOutSize_byte, unsigned int *aInfo_byte=NULL, bool aReset=false)=0 |
This methode return the statistics of the adapter. More... | |
OPEN_NET_PUBLIC unsigned int | GetStatisticsQty () const |
This methode returns the number of statistics counter. More... | |
const OPEN_NET_PUBLIC StatisticsDescription * | GetStatisticsDescriptions () const |
This methode returns the statistics counter descriptions. More... | |
virtual Status | ResetStatistics ()=0 |
This methode resets the statistics of the adapter. More... | |
OPEN_NET_PUBLIC Status | DisplayStatistics (const unsigned int *aIn, unsigned int aInSize_byte, FILE *aOut, unsigned int aMinLevel=0) |
Display. More... | |
Static Public Member Functions | |
static OPEN_NET_PUBLIC Status | Display (const Config &aIn, FILE *aOut) |
Display. More... | |
static OPEN_NET_PUBLIC Status | Display (const Info &aIn, FILE *aOut) |
Display. More... | |
static OPEN_NET_PUBLIC Status | Display (const State &aIn, FILE *aOut) |
Display. More... | |
This class define the adapter level interface.
|
static |
Display.
aIn | The Config instance to display |
aOut | The output stream |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT | |
STATUS_INVALID_REFERENCE |
|
static |
Display.
aIn | The Info instance to display |
aOut | The output stream |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT | |
STATUS_INVALID_REFERENCE |
|
static |
Display.
aIn | The State instance to display |
aOut | The output stream |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT | |
STATUS_INVALID_REFERENCE |
|
pure virtual |
Display.
aOut | The output stream |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
Wait for event.
aCallback | The event processing function. Use NULL to unregister. |
aContext | The context to pass to the function |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
This methode return the adapter numero.
aOut | The methode return the information here. |
STATUS_OK | |
STATUS_ADAPTER_NOT_CONNECTED | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
This methode return the configuration of the adapter.
aOut | The methode return the information here. |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
This methode returns the information about the adapter.
aOut | The methode return the information here. |
STATUS_OK | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
This method returns the adapter's name.
|
pure virtual |
This methode returns the state of the adapter.
aOut | The methode return the information here. |
STATUS_OK | |
STATUS_IOCTL_ERROR | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT |
|
pure virtual |
This methode indicate if the adapter is connected to a system.
false | |
true |
|
pure virtual |
This methode indicate if the adapter is connected to the system.
aSystem | The System instance |
false | |
true |
|
pure virtual |
This methode send a packet.
aData | The data |
aSize_byte | The size |
STATUS_OK | |
STATUS_IOCTL_ERROR | |
STATUS_NOT_ALLOWER_NULL_ARGUMENT | |
STATUS_PACKET_TO_LARGE | |
STATUS_PACKET_TO_SMALL |
|
pure virtual |
This methode read data from the driver.
aOut | The output buffer |
aOutSize_byte | The size of the output buffer |
aInfo_byte | The method put the size of read data here |
STATUS_OK |
|
pure virtual |
This methode reset the input filter.
STATUS_OK | |
STATUS_FILTER_NOT_SET |
|
pure virtual |
This methode reset the processor.
STATUS_OK | |
STATUS_PROCESSOR_NOT_SET |
|
pure virtual |
|
pure virtual |
This methode set the input filter.
aSourceCode | The SourceCode instance |
STATUS_OK | |
STATUS_FILTER_ALREADY_SET | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT | |
STATUS_PROCESSOR_NOT_SET |
|
pure virtual |
This methode associate a processor to the adapter.
aProcessor | The Processor instance |
STATUS_OK | |
STATUS_INVALID_PROCESSOR | |
STATUS_NOT_ALLOWED_NULL_ARGUMENT | |
STATUS_PROCESSOR_ALREADY_SET |
|
pure virtual |
This methode disable packet transmit.
STATUS_OK |
|
pure virtual |
This methode enable packet transmit.
STATUS_OK |