
Using the class RouterSession and the template Router, a router module can be defined. The way they are intended to be used are as follows: class MyRouterSession : public maxscale::RouterSession { ... }; class MyRouter : public maxscale::Router<MyRouter, MyRouterSession> { ... } ... extern "C" MXS_MODULE* MXS_CREATE_MODULE() { static MXS_MODULE module = { ... &MyRouter::s_object, ... }; return &module; }