MaServer Class Reference

Inheritance diagram for MaServer:

MprLink List of all members.

Detailed Description

HTTP server possibly listening on multiple ports.

An application may have any number of HTTP servers, each managed by an instance of the Server class. Typically there will be only one server in an application. There may be multiple virtual hosts and one default host for each server class. A server will typically be configured by calling the configure method for each server which parses a file to define the server and virtual host configuration.

Stability classification:
Evolving.


Public Member Functions

int getLine ()
MprListgetList ()
 Destructor.
void insertAfter (MprLink *item)
 Return the owning list Insert after this member.
void insertPrior (MprLink *item)
 Insert prior to this member.
int start ()
int stop ()


Member Function Documentation

int MaServer::getLine  )  [inline]
 

Synopsis:
Return the current configuration file line number
Overview:
If a error is encountered when parsing the configuration file, getLine will return the current line number for error reporting purposes.
Returns:
The current line number (origin 1).
Stability classification:
Evolving.
Library:
libappweb
See also:
configure

int MaServer::start  ) 
 

Synopsis:
Start the server.
Overview:
Call to start all hosts within the server.
Returns:
Returns zero if successful, otherwise return a negative MPR error code.

int MaServer::stop  ) 
 

Synopsis:
Stop the server.
Overview:
Call to stop all hosts within the server.
Returns:
Returns zero if successful, otherwise return a negative MPR error code.


The documentation for this class was generated from the following files:

© Mbedthis Software LLC, 2003-2009. All rights reserved. Mbedthis is a trademark of Mbedthis Software LLC.