C API Reference -- Ns_GetDriverProc

### Ns_GetDriverProc

#### Overview

Get a communications driver procedure

#### Syntax

        int Ns_GetDriverProc(
        Ns_Driver driver,
        Ns_DrvId id,
        void **pprocPtrPtr
        );

#### Description

Get a communications driver procedure for the specified ID. Valid ID values are listed in the left column of the table below.

The `procPtrPtr` will be filled in with the address of a registerd driver function. NS_ERROR will be returned if no registered function could be found. The resulting function is of the type shown in the right column below

ID Value | Resulting Function Type
--- | ---
Ns_DrvIdName | typedef char *(Ns_ConnDriverNameProc) (void *pConnCtx);
Ns_DrvIdStart | typedef int (Ns_DriverStartProc) (char *hServer, char *hDriver, void **ppDriverCtx);
Ns_DrvIdAccept | typedef int (Ns_DriverAcceptProc) (void *pDriverCtx, void **ppConnCtx);
Ns_DrvIdStop | typedef void (Ns_DriverStopProc) (void *pDriverCtx);
Ns_DrvIdInit | typedef int (Ns_ConnInitProc) (void *pConnCtx);
Ns_DrvIdRead | typedef int (Ns_ConnReadProc) (void *pConnCtx, void *pvBuf, int iToRead);
Ns_DrvIdWrite | typedef int (Ns_ConnWriteProc) (void *pConnCtx, void *pvBuf, int iToWrite);
Ns_DrvIdClose | typedef int (Ns_ConnCloseProc) (void *pConnCtx);
Ns_DrvIdFree | typedef void (Ns_ConnFreeProc) (void *pConnCtx);
Ns_DrvIdPeer | typedef char *(Ns_ConnPeerProc) (void *pConnCtx);
Ns_DrvIdLocation | typedef char *(Ns_ConnLocationProc) (void *pConnCtx);
Ns_DrvIdHost | typedef char *(Ns_ConnHostProc) (void *pConnCtx);
Ns_DrvIdPort | typedef int (Ns_ConnPortProc) (void *pConnCtx);
Ns_DrvIdSendFd | typedef int (Ns_ConnSendFdProc) (void *pConnCtx, int fd, int nsend);
Ns_DrvIdSendFile | typedef int (Ns_ConnSendFileProc) (void *pConnCtx, char *file);
Ns_DrvIdDetach | typedef void *(Ns_ConnDetachProc) (void *pConnCtx);
Ns_DrvIdConnectionFd | typedef int (Ns_ConnConnectionFdProc) (void *pConnCtx);
Ns_DrvIdMoveContext | (unsupported)
Ns_DrvIdPeerPort | typedef int (Ns_ConnPeerPortProc) (void *pConnCtx);
Ns_DrvIdSetSSLAuth | typedef int (Ns_SetSSLAuthProc) (void *pCtx, Ns_SSLAuthProc *, void *ctx, Ns_FreeAuthCtxProc *);
Ns_DrvIdSSLHandshake | typedef void *(Ns_SSLHandshakeProc) (void *aCtx, int socket, char *DN, Ns_SSLAuthProc *auth, void *authctx, Ns_FreeAuthCtxProc *pFree);

:

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