Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ns_conndrivercontext(3aolserv) [debian man page]

Ns_ConnDriver(3aolserver)				   AOLserver Library Procedures 				 Ns_ConnDriver(3aolserver)

__________________________________________________________________________________________________________________________________________________

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 AOLserver 4.0 Ns_ConnDriver(3aolserver)

Check Out this Related Man Page

Ns_ConnReturn(3aolserver)				   AOLserver Library Procedures 				 Ns_ConnReturn(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_ConnRedirect - Internally redirect a request to a new local url SYNOPSIS
#include "ns.h" int Ns_ConnRedirect(conn, url) ARGUMENTS
Ns_Conn conn (in) Pointer to open connection. char *url (in) Pointer to string of local url. _________________________________________________________________ DESCRIPTION
This routine can be used to internally redirect to a new, local url on the server. The url paramter specifies a path relative to the server, i.e., without the leading "http://host:port" portion. The server will reset the Ns_Request structure in the open connection pointed to by conn and restart connection handling, including authorization checks. The result is a standard AOLserver request procedure result code, either from an underlying call to Ns_ConnRunRequest or the result of one of the authorization response routines such as Ns_ConnReturnForbidden. Filter callbacks, if any, are not run again with the updated connection. The Ns_ConnRedirect routine is used internally in the server to support the basic file serving code (i.e., "fastpath") to redirect to spe- cific files when a directory is opened and by the Ns_RegisterRedirect routine to map standard reponse routines to user-provided local url's. EXAMPLE
The following example demonstrates redirecting to an ADP help page within a custom C-level request callback whenever a ?help=topic query argument is present: int MyRequest(void *arg, Ns_Conn *conn) { Ns_Set *query = Ns_ConnGetQuery(conn); /* Redirect to help.adp for /myrequest?help=topic calls. */ if (Ns_SetGet(query, "help")) != NULL) { return Ns_ConnReturnRedirect(conn, "/help.adp"); } ... handle non-help requests ... } SEE ALSO
Ns_RegisterRedirct(3), Ns_ConnRunRequest(3), Ns_AuthorizeRequest(3) KEYWORDS
connection, redirect AOLserver 4.0 Ns_ConnReturn(3aolserver)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need remote connection help

I am very new to all of this. I tcsh into a Unix box at work. I receive "hints" from a guy here at work that is helping me without doing everything for me. I need to use rx display to x connect to a remote host. I then need to tell the machine (unsure if he meant mine or the box I connected... (2 Replies)
Discussion started by: noobie_doo
2 Replies

2. Shell Programming and Scripting

Script to parse a file faster

My example file is as given below: conn=1 uid=oracle conn=2 uid=db2 conn=3 uid=oracle conn=4 uid=hash conn=5 uid=skher conn=6 uid=oracle conn=7 uid=mpalkar conn=8 uid=anarke conn=1 op=-1 msgId=-1 - fd=104 slot=104 LDAPS connection from 10.10.5.6 to 10.18.6.5 conn=2 op=-1 msgId=-1 -... (7 Replies)
Discussion started by: sags007_99
7 Replies

3. Red Hat

Help: Find established conn source

Hi Friends, On one of my server which having direct connection to internet without firewall ..am seeing a established connection with SSH .. am not getting how ..there no login but I can see this established connection . ## have hidden original IPs with below notations for security concerns .... (0 Replies)
Discussion started by: Shirishlnx
0 Replies

4. Shell Programming and Scripting

Need help to replace a perl pattern matching

My example file is as given below: conn=1 uid=oracle conn=2 uid=db2 conn=3 uid=oracle conn=4 uid=hash conn=5 uid=skher conn=6 uid=oracle conn=7 uid=mpalkar conn=8 uid=anarke conn=9 uid=oracle conn=1 op=-1 msgId=-1 - fd=104 slot=104 LDAPS connection from 10.10.5.6 to 10.18.6.5 conn=2... (4 Replies)
Discussion started by: sags007_99
4 Replies

5. Shell Programming and Scripting

Help need with PERL multiple search pattern matching!

My example file is as given below: conn=1 uid=oracle conn=2 uid=db2 conn=3 uid=oracle conn=4 uid=hash conn=5 uid=skher conn=6 uid=oracle conn=7 uid=mpalkar conn=8 uid=anarke conn=9 uid=oracle conn=1 op=-1 msgId=-1 - fd=104 slot=104 LDAPS connection from 10.10.5.6 to 10.18.6.5 conn=2... (3 Replies)
Discussion started by: sags007_99
3 Replies