New Features in Version 3.0 -- C API

### C API

The following feature changes for the C API are included in AOLserver Version 3.0:

Feature | Where Documented
--- | ---
ADP functions removed: The following functions are no longer supported for Version 3.0: Ns_AdpParseBuffer Ns_AdpParseFile Ns_AdpParseFp Ns_RegisterAdpCmd | NA
New caching API: The following caching functions are new for Version 3.0: 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 | C Developer's Guide: page 54 through page 78
New Cond functions: The following functions are new for Version 3.0: Ns_CondBroadcast Ns_CondDestroy Ns_CondInit Ns_CondSignal Ns_CondTimedWait Ns_CondWait | C Developer's Guide: page 82 through page 87
Database stored procedures supported: The following functions are new for Version 3.0: Ns_DbSpExec Ns_DbSpGetParams Ns_DbSpReturnCode Ns_DbSpSetParam Ns_DbSpStart The following functions are new for external database driver implementation: Ns_PdDbSpExec Ns_PdDbSpGetParams Ns_PdDbSpReturnCode Ns_PdDbSpSetParam Ns_PdDbSpStart | C Developer's Guide: page 193 through page 197, and page 566 through page 573
Some database functions removed: The following functions are no longer supported for Version 3.0: Ns_DbAddColumnInfo Ns_DbBestRowId Ns_DbCloseDb Ns_DbColumnCount Ns_DbColumnIndex Ns_DbColumnName Ns_DbColumnType Ns_DbColumnValue Ns_DbDup Ns_DbFreeTableInfo Ns_DbGetTableInfo Ns_DbInitialized Ns_DbNewTableInfo Ns_DbOpenDb Ns_DbReturnError Ns_DbTableDescription Ns_DbTableExists Ns_DbTableList Ns_DbTableName Ns_DbTableValue | NA
Memory pools supported: AOLserver now uses memory pools to manage memory. Instead of calling malloc() and free() multiple times per connection, a large pool of memory is allocated at thread startup. The following new functions support memory pools: Ns_PoolAlloc Ns_PoolCreate Ns_PoolDestroy Ns_PoolDump Ns_PoolFree Ns_PoolRealloc Ns_PoolTrace Ns_ThreadCreate Ns_ThreadExit Ns_ThreadFree Ns_ThreadGetName Ns_ThreadId Ns_ThreadJoin Ns_ThreadMalloc Ns_ThreadPool Ns_ThreadRealloc Ns_ThreadSelf Ns_ThreadSetName | C Developer's Guide: page 312 through page 318, and page 445 through page 455
Quotas for the page root directory are no longer supported: As a result, the following C API functions have been removed: Ns_ConnCopyToFdWithQuota Ns_DeleteFileWithQuota Ns_MkdirWithQuota Ns_OpenWriteWithQuota Ns_RmdirWithQuota Ns_WriteWithQuota. | NA
New socket driver API for HTTP sockets: There is a new C API function: Ns_RegisterLocation | C Developer's Guide: page 335
New C functions: The following functions not otherwise mentioned above are new for Version 3.0: Ns_AbsTimedWaitForEvent Ns_AdpRegisterParser Ns_Asctime Ns_AdjTime Ns_AuthorizeUser Ns_Bindsock Ns_CheckStack Ns_CloseOnExec Ns_ConfigGetInt64 Ns_ConnConstructHeaders Ns_ConnContentSent Ns_ConnCopyToChannel Ns_ConnCopyToFd Ns_ConnFlushContent Ns_ConnInit Ns_ConnOutputHeaders Ns_ConnPeerPort Ns_ConnReadHeaders Ns_ConnReadLine Ns_ConnRedirect Ns_ConnReturnOpenChannel Ns_ConnRunRequest Ns_ConnSendChannel Ns_ConnSendDString Ns_CsDestroy Ns_CsEnter Ns_CsInit Ns_CsLeave Ns_Ctime Ns_DbDriverDbType Ns_DbInterpretSqlFile Ns_DbPoolDefault Ns_DStringAppendArg Ns_DiffTime Ns_DriverEnableKeepalive Ns_ExecArgblk Ns_ExecArgv Ns_ExecProc Ns_ExecProcess Ns_ExitThread Ns_Fork | C Developer's Guide: "C API Function Reference"
New C functions, continued: Ns_GetDriver Ns_GetDriverContext Ns_GetDriverLabel Ns_GetDriverName Ns_GetDriverProc Ns_GetFirstDriver Ns_GetMimeType Ns_GetNextDriver Ns_GetSockAddr Ns_GetTime Ns_GetUid Ns_Gmtime Ns_HtuuDecode Ns_HtuuEncode Ns_IncrTime Ns_InetNtoa Ns_InfoBootTime Ns_InfoErrorLog Ns_InfoHostname Ns_InfoPid Ns_InfoPlatform Ns_InfoServersStarted Ns_InfoShutdownPending Ns_InfoStarted Ns_InfoUptime Ns_InitPrint Ns_LibPath Ns_Localtime Ns_LogRoll Ns_Match Ns_ModLog Ns_ModLogGetThreshold Ns_ModLogLookupHandle Ns_ModLogLookupRealm Ns_ModLogRedirect Ns_ModLogRegister Ns_ModLogSetThreshold Ns_MutexDestroy Ns_MutexInit Ns_MutexLock Ns_MutexUnlock | C Developer's Guide: "C API Function Reference"
New C functions, continued: Ns_NextWord Ns_ParseHeader Ns_ParseHttpTime Ns_ParseUrl Ns_PermPasswordCheck Ns_QueryToSet Ns_QueueConn Ns_Readdir Ns_RegisterAtPreStartup Ns_RegisterAtSignal Ns_RegisterAtStartup Ns_RegisterCleanup Ns_RegisterDriver Ns_RegisterReturn Ns_RWLockDestroy Ns_RWLockInit Ns_RWLockRdLock Ns_RWLockUnlock Ns_RWLockWrLock Ns_SemaDestroy Ns_SemaInit Ns_SemaPost Ns_SemaWait Ns_SetDriverProc Ns_SetRequestUrl Ns_SetUpdate Ns_SetUserAuthorizeProc Ns_Sigmask Ns_Signal Ns_Sigwait Ns_SockCancelCallback Ns_SockListenCallback Ns_SockPortBound Ns_StrCaseFind Ns_StrToLower Ns_StrToUpper Ns_StrTrim Ns_StrTrimLeft Ns_StrTrimRight Ns_StringPrint Ns_Strtok | C Developer's Guide: "C API Function Reference"
New C functions, continued: Ns_TclDestroyInterp Ns_TclGetConn Ns_TclGetOpenChannel Ns_TclGetOpenFd Ns_TclInitModule Ns_TclInterpServer Ns_TclLibrary Ns_TclLogError Ns_TclMarkForDelete Ns_TclPrintInt Ns_TclRegisterAtCreate Ns_TclRegisterDeferred Ns_TlsAlloc Ns_TlsGet Ns_TlsSet Ns_WaitForProcess Ns_WaitForStartup Ns_WaitProcess Ns_WaitThread Ns_WriteConn | C Developer's Guide: "C API Function Reference"
Modified C functions: The following functions have been modified for Version 3.0: Ns_ConnGets Ns_ParseRequest | C Developer's Guide: page 112, page 308
Removed C functions: The following functions not otherwise mentioned above are no longer supported for Version 3.0: Ns_ClearSockErrno Ns_ConnReturnProxyNotice Ns_GetSockErrno Ns_InitializeThreads Ns_IntPrint Ns_LogPeriodic Ns_LogRaw Ns_QueryResolve Ns_RegisterShtmlCmd Ns_ReturnError Ns_ServerGetContentFileCreationMode Ns_ServerGetCustomErrorResponse Ns_ServerGetMimeIcon Ns_ServerGetMimeType Ns_ServerSetDefaultMimeType Ns_ServerSetNoExtensionMimeType Ns_ServerUpdateMimeType Ns_SetSockErrno Ns_SetThreadPriority Ns_SetThreadStackSize Ns_Shutdown Ns_SignalServer Ns_SockCloseLater Ns_SockStrError Ns_TclDbGetHandle Ns_UrlIsMiniWeb Ns_UrlToNvd | NA

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