This chapter provides a road map for developing an agent. An agent template is provided as part of the explanation on how to build one. Netscape recommends compiling and testing this agent before you build one of your own.
Agents are shared library functions.
The command server is the gateway for various events, deciding which event goes to which agent. After the command server decides to dispatch an event to a particular agent, the command server builds an event structure and passes it to the agent function as a void pointer. An agent must be aware of the contents of the structure to make use of the information it contains. Use this function to initialize your agent. When a command server receives a request for your agent function, the agent function is invoked with an appropriate event structure.