---
name: "Ns_ConnDriverContext"
section: "3aolserver"
platform: "linux"
package: "aolserver4-dev"
version: "4.5.1-18.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Ns_ConnDriverContext/3aolserver"
---

# Ns\_ConnDriverContext(3aolserver)

Routines to access communication driver data

```

```

## NAME

Ns\_ConnDriverContext, Ns\_ConnDriverName - Routines to access communication driver data

## SYNOPSIS

```
#include "ns.h"

void *
Ns_ConnDriverContext(conn)

char *
Ns_ConnDriverName(conn)
```

## ARGUMENTS

- Ns\_Conn *conn* (in)

  Pointer to open connection.

  ```

  ```

## DESCRIPTION

These functions provide access to the underyling communications driver data for an open connection.

- char \***Ns\_ConnDriverName**(*conn*)

  Returns the string name of the communication driver, e.g., "nssock". This is the name passed in the *Ns\_DriverInitData* structure in a call to **Ns\_DriverInit**, not the module name for the particular instance of the loaded driver.

- void \***Ns\_ConnDriverContent**(*conn*)

  Returns a pointer to the connection-specific driver context for the given connection.  This value is that of the *arg* element of the underlying *Ns\_Sock* structure allocated by the server and used by communication drivers to manage private state.  If the connection is closed, the value returned is always NULL.

## SEE ALSO

[Ns\_DriverInit(3)](/Ns_DriverInit/3.md)

## KEYWORDS

connection, context
