|
wavelength 1.0.0
|
The eznetctl module connects the network for the EE through a SIF RPC server. More...
#include <eznetctl.h>
Public Types | |
| enum | Function { kFunctionGetDataAddress = 0 , kFunctionApplyData = 1 , kFunctionLoadEntry = 2 , kFunctionGetStatus = 3 , kFunctionInetCtl7 = 4 , kFunctionInetCtl5 = 5 , kFunctionInetCtl6 = 6 , kFunctionLookUpName = 7 , kFunctionNetCheck = 8 } |
| RPC function numbers. More... | |
Static Public Member Functions | |
| static int | ModuleStart () |
| Start the module. | |
| static int | ModuleStop (int argc, char **argv) |
| Unload the module. | |
Static Public Attributes | |
| static constexpr unsigned int | kRpcServerId = 0x75488909 |
| SIF RPC server identifier of the module. | |
| static int | sEthernetId |
| Interface identifier of the started Ethernet interface, or zero. | |
| static int | sPppId |
| Interface identifier of the started PPP interface, or zero. | |
The eznetctl module connects the network for the EE through a SIF RPC server.
It applies a NetcnfifData the EE writes, or a combination loaded from a configuration file, waits for the interface to start, and reports its state.
The module was built without RTTI. The name is inferred from the module's name.
| enum EzNetCtl::Function |
RPC function numbers.
| Enumerator | |
|---|---|
| kFunctionGetDataAddress | Report the address of sData for the EE to write. |
| kFunctionApplyData | Apply sData and connect. |
| kFunctionLoadEntry | Load a combination and connect. |
| kFunctionGetStatus | |
| kFunctionInetCtl7 | inetctl_7() on NetCtlRequest::mInterfaceId. |
| kFunctionInetCtl5 | inetctl_5() on NetCtlRequest::mInterfaceId. |
| kFunctionInetCtl6 | inetctl_6() on NetCtlRequest::mInterfaceId. |
| kFunctionLookUpName | LookUpName(). |
| kFunctionNetCheck | Print a message and report -1. |
|
static |
Start the module.
Create and start the RPC server thread.
|
static |
Unload the module.
Only an other argument stops the RPC server thread.
| argc | Argument count. |
| argv | Arguments. |
|
staticconstexpr |
SIF RPC server identifier of the module.
|
static |
Interface identifier of the started Ethernet interface, or zero.
|
static |
Interface identifier of the started PPP interface, or zero.