Home

Traffic Server Software Developers Kit

Initialization Functions

INKPluginInit

Prototype

void INKPluginInit (int argc, const char *argv[])

Arguments

argc is a count of the number of arguments in the argument vector, argv. The count has a value of at least one because the first argument in the argument vector is the plugin’s name, which must exist in order for the plugin to be loaded.

argv is the vector of arguments. The number of arguments in the vector is argc; argv[0] always contains the name of the plugin shared library.

Description

This function must be defined by all plugins. Traffic Server calls this initialization routine when it loads the plugin and sets argc and argv based on the values in plugin.config.