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

C Developer's Guide

Chapter 1 Extending the AOLserver with C
AOLserver Operations
Operation Arguments
Operation Data
Operation Inheritance
Trace, Shutdown, and Access Checking
C Interface
Chapter 2 C Interface
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
Server-Parsed HTML Functions
C API Function Reference
Ns_AbsoluteUrl
Ns_AllocThreadLocalStorage
Ns_AuthorizeRequest
Ns_BeginDetachedThread
Ns_BeginThread
Ns_BroadcastEvent
ns_calloc
Ns_ClearSockErrno
Ns_ConfigGetBool
Ns_ConfigGetInt
Ns_ConfigGetPath
Ns_ConfigGetSection
Ns_ConfigGetSections
Ns_ConfigGetValue
Ns_ConfigGetValueExact
Ns_ConnAuthPasswd
Ns_ConnAuthUser
Ns_ConnClose
Ns_ConnCondSetHeaders
Ns_ConnContentLength
Ns_ConnCopyToDString
Ns_ConnCopyToFile
Ns_ConnDriverContext
Ns_ConnDriverName
Ns_ConnFlushHeaders
Ns_ConnGetQuery
Ns_ConnGets
Ns_ConnHeaders
Ns_ConnHost
Ns_ConnLocation
Ns_ConnModifiedSince
Ns_ConnPeer
Ns_ConnPort
Ns_ConnPrintfHeader
Ns_ConnPuts
Ns_ConnRead
Ns_ConnReadLine
Ns_ConnReplaceHeaders
Ns_ConnResponseLength
Ns_ConnResponseStatus
Ns_ConnReturnAdminNotice
Ns_ConnReturnBadRequest
Ns_ConnReturnFile
Ns_ConnReturnForbidden
Ns_ConnReturnHtml
Ns_ConnReturnInternalError
Ns_ConnReturnNoResponse
Ns_ConnReturnNotFound
Ns_ConnReturnNotice
Ns_ConnReturnNotImplemented
Ns_ConnReturnNotModified
Ns_ConnReturnOk
Ns_ConnReturnOpenFd
Ns_ConnReturnOpenFile
Ns_ConnReturnRedirect
Ns_ConnReturnStatus
Ns_ConnReturnUnauthorized
Ns_ConnSendFd
Ns_ConnSendFp
Ns_ConnServer
Ns_ConnSetExpiresHeader
Ns_ConnSetHeaders
Ns_ConnSetLastModifiedHeader
Ns_ConnSetLengthHeader
Ns_ConnSetRequiredHeaders
Ns_ConnSetTypeHeader
Ns_ConnWrite
Ns_Db0or1Row
Ns_Db1Row
Ns_DbAddColumnInfo
Ns_DbBestRowId
Ns_DbBindRow
Ns_DbCancel
Ns_DbCloseDb
Ns_DbColumnCount
Ns_DbColumnIndex
Ns_DbColumnName
Ns_DbColumnType
Ns_DbColumnValue
Ns_DbDML
Ns_DbDriverName
Ns_DbDup
Ns_DbExec
Ns_DbFlush
Ns_DbFreeTableInfo
Ns_DbGetRow
Ns_DbGetTableInfo
Ns_DbInitialized
Ns_DbNewTableInfo
Ns_DbOpenDb
Ns_DbPoolAllowable
Ns_DbPoolDescription
Ns_DbPoolGetHandle
Ns_DbPoolGetMultipleHandles
Ns_DbPoolList
Ns_DbPoolPutHandle
Ns_DbQuoteValue
Ns_DbRegisterDriver
Ns_DbReturnError
Ns_DbSelect
Ns_DbSetException
Ns_DbTableDescription
Ns_DbTableExists
Ns_DbTableList
Ns_DbTableName
Ns_DbTableValue
Ns_DecodeUrl
Ns_DestroyCriticalSection
Ns_DestroyEvent
Ns_DestroyMutex
Ns_DestroySemaphore
Ns_DStringAppend
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_Fatal
Ns_FetchPage
Ns_FetchURL
ns_free
Ns_FreeRequest
Ns_GetHostByAddr
Ns_GetRequest
Ns_GetSockErrno
Ns_GetThread
Ns_GetThreadId
Ns_GetThreadLocalStorage
Ns_GetUserHome
Ns_HomePath
Ns_HttpTime
Ns_InfoConfigFile
Ns_InfoHomePath
Ns_InfoServerName
Ns_InfoServerVersion
Ns_InitializeCriticalSection
Ns_InitializeEvent
Ns_InitializeMutex
Ns_InitializeSemaphore
Ns_InitializeThreads
Ns_LeaveCriticalSection
Ns_LockMutex
Ns_Log
Ns_LogRaw
Ns_LogTime
Ns_MakePath
ns_malloc
Ns_ModuleLoad
Ns_ModulePath
Ns_ModuleSymbol
Ns_NormalizePath
Ns_PageRoot
Ns_ParseRequest
Ns_PathIsAbsolute
Ns_QuoteHtml
ns_realloc
Ns_RegisterAtExit
Ns_RegisterRequest
Ns_RegisterServerShutdown
Ns_RegisterServerTrace
Ns_RegisterShtmlCmd
Ns_RegisterShutdown
Ns_RelativeUrl
Ns_ReleaseSemaphore
Ns_ReturnError (no longer supported)
Ns_RollFile
Ns_ScheduleDaily
Ns_ScheduleProc
Ns_ScheduleProcEx
Ns_ScheduleWeekly
Ns_ServerGetContentFileCreationMode
Ns_ServerGetCustomErrorResponse
Ns_ServerGetMimeIcon
Ns_ServerGetMimeType
Ns_ServerSetDefaultMimeType
Ns_ServerSetNoExtensionMimeType
Ns_ServerSpecificAlloc
Ns_ServerSpecificDestroy
Ns_ServerSpecificGet
Ns_ServerSpecificSet
Ns_ServerUpdateMimeType
Ns_SetCopy
Ns_SetCreate
Ns_SetDelete
Ns_SetDeleteKey
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_SetSize
Ns_SetSockErrno
Ns_SetSplit
Ns_SetThreadLocalStorage
Ns_SetThreadPriority
Ns_SetThreadStackSize
Ns_SetTrunc
Ns_SetUnique
Ns_SetUrlToFileProc
Ns_SetValue
Ns_SignalServer
Ns_SkipUrl
Ns_SockAsyncConnect
Ns_SockCallback
Ns_SockCloseLater
Ns_SockConnect
Ns_SockListen
Ns_SockPipe
Ns_SockSetBlocking
Ns_SockSetNonBlocking
Ns_SockStrError
Ns_SockTimedConnect
ns_strcopy
ns_strdup
Ns_TclDbGetHandle
Ns_TclDeAllocateInterp
Ns_TclEnterSet
Ns_TclEval
Ns_TclFreeSet
Ns_TclGetSet
Ns_TclGetSet2
Ns_TclInitInterps
Ns_ThreadYield
Ns_TimedWaitForEvent
Ns_UnlockMutex
Ns_UnRegisterRequest
Ns_UnscheduleProc
Ns_UrlIsDir
Ns_UrlIsFile
Ns_UrlIsMiniWeb
Ns_UrlSpecificAlloc
Ns_UrlSpecificDestroy
Ns_UrlSpecificGet
Ns_UrlSpecificGetExact
Ns_UrlSpecificSet
Ns_UrlToFile
Ns_UrlToNvd
Ns_WaitForEvent
Ns_WaitForSemaphore
Ns_WaitForThread
Chapter A C Examples
Example 1: hello
Example 2: alias
Example 3: counter
Example 4: stats
Example 5: tclhello
Example 6: tclcs
Example 7: postgres

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.