CHttpServer::CHttpServer

CHttpServer( TCHAR cDelimiter );

Parameters

cDelimiter

A character identifying the token delimiter. By default, this delimiter is ‘&’.

Remarks

The run-time calls this function when constructing a CHttpServer object. Only one instance of CHttpServer may exist for each module. Once a CHttpServer object is created, it can be initialized with InitInstance.

After the ISA has been initiated by a client command and acted upon by the server, the client receives a response page that reflects the cDelimiter parameter in the URL. The cDelimiter parameter separates the command’s arguments that are parsed by the parse map macros ON_PARSE_COMMAND and ON_PARSE_COMMAND_PARAMS.

Example of cDelimiter

If the client initiates an ISA to view a colorized JPEG image from the URL http://www.jungle.org/, the command sent to the server could look like this:

http://www.Jungle.org/scripts/Apes.dll?Colorize

where Colorize is the command initiating the Colorize function.

The URL that the server returns to the client would look like this:

http://www.jungle.org/scripts/Apes.dll?Colorize?Target=Picture&Format=JPEG

The cDelimiter default delimiter & appears in the client’s URL between the two parameters Picture and Format of the function Colorize.

See ON_PARSE_COMMAND and ON_PARSE_COMMAND_PARAMS for more information about parsing commands.

CHttpServer OverviewClass MembersHierarchy Chart