Infinoted.Plugin¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
connection_info_size |
r/w |
The size of the plugin’s connection info structure. For each plugin instance, this amount of memory will be allocated for each connection of the server. The plugin can use it to store connection-specific data. This field can be 0. |
|
description |
r/w |
A human-readable description of what the plugin does. |
|
info_size |
r/w |
The size of the plugin instance structure. When the plugin is instantiated, this amount of memory will be allocated for the plugin instance. This field must be different from 0. |
|
name |
r/w |
The name of the plugin. The filename of the shared object should be |
|
on_connection_added |
r |
||
on_connection_removed |
r |
||
on_deinitialize |
r |
||
on_info_initialize |
r |
||
on_initialize |
r |
||
on_session_added |
r |
||
on_session_removed |
r |
||
options |
r/w |
A 0-terminated list of plugin parameters. The parameters are provided to the plugin via the infinoted configuration file or the command line. The last element of the list must have the name field set to |
|
session_info_size |
r/w |
The size of the plugin’s session info structure. For each plugin instance, this amount of memory will be allocated for each session that is currently active on the server. The plugin can use it to store session-specific data. This field can be 0. |
|
session_type |
r/w |
If non- |
Methods¶
None
Details¶
- class Infinoted.Plugin¶
Declares a
Infinoted.Plugin
. If an instance of this structure is calledINFINOTED_PLUGIN
and exported from a shared object, it can be loaded as a plugin by infinoted.