Skip to content

Module thc_HttpDServer

Andreas Drollinger edited this page Nov 8, 2019 · 14 revisions

HTTP debug server

This module provides a HTTP server that provides debugging features, like running Tcl commands on the THC server, getting device states, getting files, etc. There features are accessible by accessing via a web browser the port opened by this HTTP server.

The HTTP debug server uses the HTTP protocol 1.0. It doesn't provide any security or authentication and should therefore be disabled in an insecure environment.


Proc: thc::HttpDServer::Start

Start the HTTP server. This command starts an HTTP server at the specified port. It accepts Tcl commands, evaluates them, and returns the result.

Parameters

Parameters Description
Port HTTP port

Returns

HTTP server socket identifier

Examples

 thc::HttpDServer::Start 8085

Proc: thc::HttpDServer::Stop

Closes a running HTTP server.

Returns

-

Examples

 thc::HttpDServer::Stop