Files |
| file | IMC.c |
| | Inter-Module Communication functions.
|
| file | IMC.h |
| | Inter-Module Communication declarations.
|
| file | ModuleLoader.c |
| | Module loading functions.
|
| file | Modules.h |
| | Various module management declarations.
|
Data Structures |
| struct | ANetFunctionMap |
| struct | ANetModuleInfo |
Typedefs |
| typedef ANetFunctionMap | ANetFunctionMap |
| typedef UInt32(* | ANetModuleLoadFuncPtr )(ANetModuleInfo *modInfo) |
| typedef UInt32(* | ANetModuleCreateInstanceFuncPtr )(ANetTagID tag, ANetMemoryTag *g) |
| typedef UInt32(* | ANetModuleDestroyInstanceFuncPtr )(ANetMemoryTag g) |
| typedef UInt32(* | ANetClientConnectionMainFuncPtr )(ANetMemoryTag commands, UInt32 nbrPackets, UInt8 *packets, UInt8 **packetIndex) |
| typedef UInt32(* | ANetDataTransMainFuncPtr )(UInt8 dir, UInt32 nbrPackets, UInt8 *packets, UInt8 **packetIndex) |
| typedef UInt32(* | ANetDataTransGetSupportedTagsFuncPtr )(ANetMemoryTag *tagList, ANetMemoryTag *humanReadableList) |
| typedef UInt32(* | ANetClusterGroupMainFuncPtr )(char *name, UInt32 nbrPackets, UInt8 *packets, ANetMemoryTag clusterBuffers) |
| typedef UInt32(* | ANetClusterFilterMainFuncPtr )(UInt32 nbrPackets, UInt8 *packets, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete) |
| typedef UInt32(* | ANetClusterFilterForcedFuncPtr )(UInt32 nbrPackets, UInt8 *packets, UInt32 maxBytes, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete) |
| typedef UInt32(* | ANetHandshakingProtocolMainFuncPtr )(UInt32 nbrConnections, UInt32 *connectionIDs, ANetMemoryTag *inBuffers, ANetMemoryTag *outBuffers) |
| typedef UInt32(* | ANetPacketProtocolMainFuncPtr )(UInt8 *inAEPs, ANetMemoryTag outAEPs) |
| typedef UInt32(* | ANetPacketProtocolStatusFuncPtr )(UInt32 *status) |
| typedef UInt32(* | ANetConnectionProtocolMainFuncPtr )() |
| typedef UInt32(* | ANetConnectionProtocolStatusFuncPtr )(UInt32 *status) |
| typedef UInt32(* | ANetBandwidthManagerMainFuncPtr )(ANetMemoryTag in, ANetMemoryTag out) |
| typedef UInt32(* | ANetCoreModuleMainFuncPtr )(UInt32 nbrPackets, UInt8 *packets, ANetMemoryTag commands) |
| typedef UInt32(* | ANetStubMainFuncPtr )(UInt32 val) |
| typedef UInt32(* | ANetStubFunc1Ptr )(UInt32 val) |
| typedef UInt32(* | ANetStubFunc2Ptr )(UInt32 val) |
Enumerations |
| enum | {
kUndefined = 0,
kModuleCreateInstance = 1,
kModuleDestroyInstance = 2,
kClientConnectionMain = 3,
kDataTransMain = 4,
kDataTransGetSupportedTags = 12,
kClusterGroupMain = 5,
kClusterFilterMain = 6,
kClusterFilterForced = 13,
kHansdhakingProtocolMain = 7,
kPacketProtocolMain = 8,
kPacketProtocolStatus = 14,
kConnectionProtocolMain = 9,
kConnectionProtocolStatus = 15,
kBandwidthManagerMain = 10,
kCoreModuleMain = 11,
kStubMain = 50,
kStubFunc1 = 51,
kStubFunc2 = 52
} |
| | Module Function IDs. More...
|
Functions |
| UInt32 | ANetAddModuleName (ANetModuleInfo *modInfo, char *moduleName) |
| UInt32 | ANetAddFunctionMap (ANetModuleInfo *modInfo, ANetFunctionMap *funcMap) |
| ANetMemoryTag | ANetGetGlobals () |
| | Returns the current global tag of the running module. More...
|
| UInt32 | CallModuleFunction (char *moduleName, char *instanceName, UInt32 funcID,...) |
| | Calls a function in a module. More...
|
| void | Test () |
| void | LoadModules () |
| void | CreateInstance (char *moduleName, char *instanceName) |
| void | LoadInternalModule (ANetModuleLoadFuncPtr func) |
Variables |
| ANetMemoryTag | currentGlobals |
This code manage the different modules running in the ANet daemon.