|Ns_Location(3aolserver)||AOLserver Library Procedures||Ns_Location(3aolserver)|
Ns_SetConnLocationProc, Ns_SetLocationProc - Set the location procedure to use
#include "ns.h" void Ns_SetConnLocationProc(Ns_LocationProc *procPtr) void Ns_SetLocationProc(char *ignored, Ns_LocationProc *procPtr)
These functions set the procedure to run when a call to Ns_ConnLocation is made. The location is defined in the form METHOD://HOSTNAME:PORT, e.g. http://myhost.com:8443.
Setting the location procedure with these functions will cause all calls to Ns_ConnLocation to use the location procedure you define instead of using the location procedure callback in the communication module for the connection.
There may be cases where you want to do this. For example, you could create a location procedure that reports on the values returned by communication module location procedure callbacks. At the end of that procedure, you could then return that value after logging the information making your location procedure is effectively transparent to the server and other modules.
nsd(1), info(n), Ns_ConnLocation(3)