Active C PagesTechnicalFAQDownloads

Home

ACP

Contact

Projects


Categories

[Index]

ACP Scripting
ACP Internal
ACP Container
Application
Web Internal
Web External
Utility

Files

web_admin.c
web_common.c
web_http.c
web_mime.c
web_protocol.c
web_socket.c
web_stream.c
web_thread.c

web_protocol.c

   File         : web_protocol.c
   Description  : Provides the WEB Protocol
   Category     : Web Internal
   Author       : Charles Yates

WEB_Manager

   void *WEB_Manager( void *arg )
 
   Function     : WEB_Manager
   Description  : Manager thread for the WEB Protocol
   Input        : void *arg - a pointer to a WEB_SOCKET
   Output       : Depends...
   Returns      : void * - NULL
   Special Logic:
   
   This monitors the WEB socket server. On receipt of a new request it
   locates an idle worker thread and feeds it the file descriptor of the 
   socket.

WEB_Worker

   void *WEB_Worker( void *arg )
 
   Function     : WEB_Worker
   Description  : Worker thread for WEB Manager
   Input        : void * arg - pointer to WEB_THREAD 
   Output       : depends
   Returns      : void * - NULL
   Special Logic:
   
   Each worker is at the beck and call of the manager. Between tasks it 
   waits for its manager to send a new task to do. 

WEB_Protocol

   int WEB_Protocol( WEB_COMMON common, WEB_THREAD thread )
 
   Function     : WEB_Protocol
   Description  : Executes the WEB Protocol
   Input        : WEB_COMMON common - common block to use
                  WEB_THREAD thread - thread in action
   Output       : The protocol is carried out :-)
   Returns      : int - 0 when successful, !=0 when unsuccessful