[ Contents ] [ Index ]
[ Previous ] [ Next ]

C Developer's Guide

Chapter 1 Extending AOLserver with C
AOLserver Operations
Operation Arguments
Operation Data
Operation Inheritance
Trace, Shutdown, and Access Checking
C Interface
Chapter 2 C API Reference
Loadable C Module Development
Creating a Loadable Module
Using a Loadable Module
C Interface Examples
"Hello World" in AOLserver C
An AOLserver Statistics Module
C API Function Categories
Memory Allocation Functions
Data Structures and Related Functions
Core Functions
Database Functions
C API Function Reference
Ns_AbsoluteUrl
Ns_AbsTimedWaitForEvent
Ns_AdjTime
Ns_AdpRegisterParser
Ns_AllocThreadLocalStorage
Ns_Asctime
Ns_AuthorizeRequest
Ns_AuthorizeUser
Ns_BeginDetachedThread
Ns_BeginThread
Ns_BindSock
Ns_BroadcastEvent
Ns_CacheBroadcast
Ns_CacheCreate
Ns_CacheCreateEntry
Ns_CacheCreateSz
Ns_CacheDeleteEntry
Ns_CacheFind
Ns_CacheFindEntry
Ns_CacheFirstEntry
Ns_CacheFlush
Ns_CacheFlushEntry
Ns_CacheFree
Ns_CacheGetValue
Ns_CacheKey
Ns_CacheLock
Ns_CacheMalloc
Ns_CacheName
Ns_CacheNextEntry
Ns_CacheSetValue
Ns_CacheSetValueSz
Ns_CacheSignal
Ns_CacheTimedGetValue
Ns_CacheTimedWait
Ns_CacheUnlock
Ns_CacheUnsetValue
Ns_CacheWait
Ns_Calloc
Ns_CheckStack
Ns_CloseOnExec
Ns_CondBroadcast
Ns_CondDestroy
Ns_CondInit
Ns_CondSignal
Ns_CondTimedWait
Ns_CondWait
Ns_ConfigGetBool
Ns_ConfigGetInt
Ns_ConfigGetInt64
Ns_ConfigGetPath
Ns_ConfigGetSection
Ns_ConfigGetSections
Ns_ConfigGetValue
Ns_ConfigGetValueExact
Ns_ConnAuthPasswd
Ns_ConnAuthUser
Ns_ConnClose
Ns_ConnCondSetHeaders
Ns_ConnConstructHeaders
Ns_ConnContentLength
Ns_ConnContentSent
Ns_ConnCopyToChannel
Ns_ConnCopyToDString
Ns_ConnCopyToFd
Ns_ConnCopyToFile
Ns_ConnDriverContext
Ns_ConnDriverName
Ns_ConnFlushContent
Ns_ConnFlushHeaders
Ns_ConnGetQuery
Ns_ConnGets
Ns_ConnHeaders
Ns_ConnHost
Ns_ConnInit
Ns_ConnLocation
Ns_ConnModifiedSince
Ns_ConnOutputHeaders
Ns_ConnPeer
Ns_ConnPeerPort
Ns_ConnPort
Ns_ConnPrintfHeader
Ns_ConnPuts
Ns_ConnRead
Ns_ConnReadHeaders
Ns_ConnReadLine
Ns_ConnRedirect
Ns_ConnReplaceHeaders
Ns_ConnResponseLength
Ns_ConnResponseStatus
Ns_ConnReturnAdminNotice
Ns_ConnReturnBadRequest
Ns_ConnReturnData
Ns_ConnReturnFile
Ns_ConnReturnForbidden
Ns_ConnReturnHtml
Ns_ConnReturnInternalError
Ns_ConnReturnNoResponse
Ns_ConnReturnNotFound
Ns_ConnReturnNotice
Ns_ConnReturnNotImplemented
Ns_ConnReturnNotModified
Ns_ConnReturnOk
Ns_ConnReturnOpenChannel
Ns_ConnReturnOpenFd
Ns_ConnReturnOpenFile
Ns_ConnReturnRedirect
Ns_ConnReturnStatus
Ns_ConnReturnUnauthorized
Ns_ConnRunRequest
Ns_ConnSendChannel
Ns_ConnSendDString
Ns_ConnSendFd
Ns_ConnSendFp
Ns_ConnServer
Ns_ConnSetExpiresHeader
Ns_ConnSetHeaders
Ns_ConnSetLastModifiedHeader
Ns_ConnSetLengthHeader
Ns_ConnSetRequiredHeaders
Ns_ConnSetTypeHeader
Ns_ConnWrite
Ns_CsDestroy
Ns_CsEnter
Ns_CsInit
Ns_CsLeave
Ns_Ctime
Ns_Db0or1Row
Ns_Db1Row
Ns_DbBindRow
Ns_DbBouncePool
Ns_DbCancel
Ns_DbDML
Ns_DbDriverDbType
Ns_DbDriverName
Ns_DbExec
Ns_DbFlush
Ns_DbGetRow
Ns_DbInterpretSqlFile
Ns_DbPoolAllowable
Ns_DbPoolDefault
Ns_DbPoolDescription
Ns_DbPoolGetHandle
Ns_DbPoolGetMultipleHandles
Ns_DbPoolList
Ns_DbPoolPutHandle
Ns_DbPoolTimedGetHandle
Ns_DbPoolTimedGetMultipleHandles
Ns_DbQuoteValue
Ns_DbRegisterDriver
Ns_DbSelect
Ns_DbSetException
Ns_DbSpExec
Ns_DbSpGetParams
Ns_DbSpReturnCode
Ns_DbSpSetParam
Ns_DbSpStart
Ns_DecodeUrl
Ns_DestroyCriticalSection
Ns_DestroyEvent
Ns_DestroyMutex
Ns_DestroyRWLock
Ns_DestroySemaphore
Ns_DiffTime
Ns_DriverEnableKeepalive
Ns_DStringAppend
Ns_DStringAppendArg
Ns_DStringExport
Ns_DStringFree
Ns_DStringInit
Ns_DStringLength
Ns_DStringNAppend
Ns_DStringPrintf
Ns_DStringTrunc
Ns_DStringValue
Ns_DStringVarAppend
Ns_DupHigh
Ns_EncodeUrl
Ns_Encrypt
Ns_EnterCriticalSection
Ns_ExecArgblk
Ns_ExecArgv
Ns_ExecProc
Ns_ExecProcess
Ns_ExitThread
Ns_Fatal
Ns_FetchPage
Ns_FetchURL
Ns_Fork
Ns_Free
Ns_FreeRequest
Ns_GetConnInterp
Ns_GetDriver
Ns_GetDriverContext
Ns_GetDriverLabel
Ns_GetDriverName
Ns_GetDriverProc
Ns_GetFirstDriver
Ns_GetHostByAddr
Ns_GetMimeType
Ns_GetNextDriver
Ns_GetRequest
Ns_GetSockAddr
Ns_GetThread
Ns_GetThreadId
Ns_GetThreadLocalStorage
Ns_GetTime
Ns_GetUid
Ns_GetUserHome
Ns_Gmtime
Ns_HomePath
Ns_HttpTime
Ns_HtuuDecode
Ns_HtuuEncode
Ns_IncrTime
Ns_InetNtoa
Ns_InfoBootTime
Ns_InfoBuildDate
Ns_InfoConfigFile
Ns_InfoErrorLog
Ns_InfoHomePath
Ns_InfoHostname
Ns_InfoLabel
Ns_InfoPid
Ns_InfoPlatform
Ns_InfoServerName
Ns_InfoServersStarted
Ns_InfoServerVersion
Ns_InfoShutdownPending
Ns_InfoStarted
Ns_InfoUptime
Ns_InitializeCriticalSection
Ns_InitializeEvent
Ns_InitializeMutex
Ns_InitializeRWLock
Ns_InitializeSemaphore
Ns_LeaveCriticalSection
Ns_LibPath
Ns_Localtime
Ns_LockMutex
Ns_Log
Ns_LogRoll
Ns_LogTime
Ns_MakePath
Ns_Malloc
Ns_Match
Ns_ModLog
Ns_ModLogGetThreshold
Ns_ModLogLookupHandle
Ns_ModLogLookupRealm
Ns_ModLogRedirect
Ns_ModLogRegister
Ns_ModLogSetThreshold
Ns_ModuleLoad
Ns_ModulePath
Ns_ModuleSymbol
Ns_MutexDestroy
Ns_MutexInit
Ns_MutexLock
Ns_MutexUnlock
Ns_NextWord
Ns_NormalizePath
Ns_PageRoot
Ns_ParseHeader
Ns_ParseHttpTime
Ns_ParseRequest
Ns_ParseUrl
Ns_PathIsAbsolute
Ns_PermPasswordCheck
Ns_PoolAlloc
Ns_PoolCreate
Ns_PoolDestroy
Ns_PoolDump
Ns_PoolFree
Ns_PoolRealloc
Ns_PoolTrace
Ns_QueryToSet
Ns_QueueConn
Ns_QuoteHtml
Ns_Readdir
Ns_Realloc
Ns_ReadLockRWLock
Ns_ReadUnlockRWLock
Ns_RegisterAtExit
Ns_RegisterAtPreStartup
Ns_RegisterAtSignal
Ns_RegisterAtStartup
Ns_RegisterCleanup
Ns_RegisterDriver
Ns_RegisterFilter
Ns_RegisterLocation
Ns_RegisterProxyRequest
Ns_RegisterRequest
Ns_RegisterReturn
Ns_RegisterServerShutdown
Ns_RegisterServerTrace
Ns_RegisterShutdown
Ns_RelativeUrl
Ns_ReleaseSemaphore
Ns_RollFile
Ns_RWLockDestroy
Ns_RWLockInit
Ns_RWLockRdLock
Ns_RWLockUnlock
Ns_RWLockWrLock
Ns_ScheduleDaily
Ns_ScheduleProc
Ns_ScheduleProcEx
Ns_ScheduleWeekly
Ns_SemaDestroy
Ns_SemaInit
Ns_SemaPost
Ns_SemaWait
Ns_ServerSpecificAlloc
Ns_ServerSpecificDestroy
Ns_ServerSpecificGet
Ns_ServerSpecificSet
Ns_SetCopy
Ns_SetCreate
Ns_SetDelete
Ns_SetDeleteKey
Ns_SetDriverProc
Ns_SetEvent
Ns_SetFind
Ns_SetFree
Ns_SetGet
Ns_SetIDeleteKey
Ns_SetIFind
Ns_SetIGet
Ns_SetIUnique
Ns_SetKey
Ns_SetLast
Ns_SetListFind
Ns_SetListFree
Ns_SetMerge
Ns_SetMove
Ns_SetName
Ns_SetPrint
Ns_SetPut
Ns_SetPutValue
Ns_SetRequestAuthorizeProc
Ns_SetRequestUrl
Ns_SetSize
Ns_SetSplit
Ns_SetThreadLocalStorage
Ns_SetTrunc
Ns_SetUnique
Ns_SetUpdate
Ns_SetUrlToFileProc
Ns_SetUserAuthorizeProc
Ns_SetValue
Ns_Sigmask
Ns_Signal
Ns_Sigwait
Ns_SkipUrl
Ns_SockAsyncConnect
Ns_SockCallback
Ns_SockCancelCallback
Ns_SockConnect
Ns_SockListen
Ns_SockListenCallback
Ns_SockPipe
Ns_SockPortBound
Ns_SockSetBlocking
Ns_SockSetNonBlocking
Ns_SockTimedConnect
Ns_StrCaseFind
Ns_StrCopy
Ns_StrDup
Ns_StringPrint
Ns_Strtok
Ns_StrToLower
Ns_StrToUpper
Ns_StrTrim
Ns_StrTrimLeft
Ns_StrTrimRight
Ns_TclAllocateInterp
Ns_TclAppendInt
Ns_TclDeAllocateInterp
Ns_TclDestroyInterp
Ns_TclEnterSet
Ns_TclEval
Ns_TclFreeSet
Ns_TclGetConn
Ns_TclGetOpenChannel
Ns_TclGetOpenFd
Ns_TclGetSet
Ns_TclGetSet2
Ns_TclInitInterps
Ns_TclInitModule
Ns_TclInterpServer
Ns_TclLibrary
Ns_TclLogError
Ns_TclMarkForDelete
Ns_TclRegisterAtCreate
Ns_TclRegisterDeferred
Ns_ThreadCreate
Ns_ThreadExit
Ns_ThreadFree
Ns_ThreadGetName
Ns_ThreadId
Ns_ThreadJoin
Ns_ThreadMalloc
Ns_ThreadPool
Ns_ThreadRealloc
Ns_ThreadSelf
Ns_ThreadSetname
Ns_ThreadYield
Ns_TimedWaitForEvent
Ns_TlsAlloc
Ns_TlsGet
Ns_TlsSet
Ns_UnlockMutex
Ns_UnRegisterProxyRequest
Ns_UnRegisterRequest
Ns_UnscheduleProc
Ns_UrlIsDir
Ns_UrlIsFile
Ns_UrlSpecificAlloc
Ns_UrlSpecificDestroy
Ns_UrlSpecificGet
Ns_UrlSpecificGetExact
Ns_UrlSpecificSet
Ns_UrlToFile
Ns_UTimedWaitForEvent
Ns_WaitForEvent
Ns_WaitForProcess
Ns_WaitForSemaphore
Ns_WaitForStartup
Ns_WaitForThread
Ns_WaitProcess
Ns_WaitThread
Ns_WriteConn
Ns_WriteLockRWLock
Ns_WriteUnlockRWLock
Chapter A C Examples
Example 1: nshello
Example 2: alias
Example 3: counter
Example 4: stats
Example 5: tclhello
Example 6: tclcs
Example 7: postgres
Chapter B Developing Database Drivers for AOLserver
Introduction
Internal vs. External Database Drivers
Examples
The Internal Driver API
The External Driver API
Functions to be Implemented
Utility Functions
Constants
External API Function Reference
Ns_PdDbBestRowId
Ns_PdDbBindRow
Ns_PdDbCancel
Ns_PdDbCleanup
Ns_PdDbClose
Ns_PdDbExec
Ns_PdDbFlush
Ns_PdDbGetRow
Ns_PdDbGetTableInfo
Ns_PdDbGetTypes
Ns_PdDbIndentify
Ns_PdDbInit
Ns_PdDbOpen
Ns_PdDbResultId
Ns_PdDbResultRows
Ns_PdDbSetMaxRows
Ns_PdDbSpExec
Ns_PdDbSpGetParams
Ns_PdDbSpReturnCode
Ns_PdDbSpSetParam
Ns_PdDbSpStart
Ns_PdDbTableList
Ns_PdFreeRowInfo
Ns_PdLog
Ns_PdParseOpenArgs
Ns_PdSendData
Ns_PdSendException
Ns_PdSendRowInfo
Ns_PdSendString

Master Index

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.