Ns_ConnDriverName.3aolserver

Langue: en

Version: 4.0 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)


 

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)

KEYWORDS

connection, context