Daylight v4.9
Release Date: 1 February 2008

Name

dt_alloc_http_server - create a HTTP service handler

Generic Prototype

dt_alloc_http_server(dt_Integer port) => dt_Handle

C Prototype

#include "dt_http.h"

dt_Handle dt_alloc_http_server(dt_Integer port)

FORTRAN Prototype

include 'dt_f_http.inc'

integer*4 dt_f_alloc_http_server(port)

integer*4 port

Description

Allocate a new HTTP object. The port argument is a number in the range of 0 to 65535 and identifies the process on the network. A port number of 0 means that the service behaves as a CGI. In other words, it runs once and terminates. A port number greater than zero means the service listens on that port number and behaves as a server. In other words, it runs forever.

Return Value

The handle of a new HTTP object or NULL_OB if an error is detected.

Related Topics

dt_http_get(3)