agConnection * OnMakeConnection(void)
Called when the client agent is attempting to connect to a server agent, and a new agConnection object is required. Override this and return a new application-specific agConnection object.