C API Reference -- Ns_ConnLocation

### Ns_ConnLocation

#### Overview

Return location

#### Syntax

        char *Ns_ConnLocation(
        Ns_Conn *conn
        );

#### Description

The Ns_ConnLocation function returns the HTTP location associated with the connection. For example: `http://www.avalon.com:81`.

Multiple communications drivers can be loaded into a single server. This means a server may have more than one location. For example, if the nsssl module is loaded and bound to port 8000 and the nssock module is loaded and bound to port 9000, the server would have the following two locations:

        	http://www.avalon.com:9000
        	https://www.avalon.com:8000

For this reason it is important to use the Ns_ConnLocation function to determine the driver location at run time.

Top of Page
Copyright © 1998-99 America Online, Inc.