webradio/xmlserv.c File Reference


Detailed Description

XML server interface.

 *
 * $Log$
 *
 * 

Definition in file xmlserv.c.

Go to the source code of this file.

Functions

static int StartReportServiceThread (void)
void XmlRefresh (void)
static int XmlProcessCommands (FILE *stream)
static int XmlProcessReports (FILE *stream)
void XmlCmdService (void *arg)
 XML command service thread.
void XmlRepoService (void *arg)
 XML report thread.
int XmlServerStart (void)
 XML Server Start.

Variables

static int xmld_tc
static HANDLE xml_infoq


Function Documentation

static int StartReportServiceThread ( void   )  [static]

Definition at line 302 of file xmlserv.c.

References XMLD_SERVICE_STACK, xmld_tc, and XmlRepoService().

Referenced by XmlRepoService(), and XmlServerStart().

Here is the call graph for this function:

XmlRepoServiceLogMsgTcpStreamAcceptXmlProcessReportsUserIfGetDisplayText

void XmlRefresh ( void   ) 

Definition at line 81 of file xmlserv.c.

Referenced by UserIfShowStatus(), UserIfThread(), and XmlProcessCommands().

static int XmlProcessCommands ( FILE *  stream  )  [static]

Definition at line 89 of file xmlserv.c.

References LOG_ERROR, LOG_XMLCD, LogMsg(), RECEIVERINFO::ri_decoder, webradio, WEBRADIO::wr_cfgupd, WEBRADIO::wr_gain, WEBRADIO::wr_rip, and XmlRefresh().

Referenced by XmlCmdService().

Here is the call graph for this function:

LogMsgXmlRefresh

static int XmlProcessReports ( FILE *  stream  )  [static]

Definition at line 148 of file xmlserv.c.

References UserIfGetDisplayText(), webradio, and WEBRADIO::wr_gain.

Referenced by XmlRepoService().

Here is the call graph for this function:

UserIfGetDisplayText

XmlCmdService ( void *  arg  ) 

XML command service thread.

This thread processes XML command request.

Definition at line 167 of file xmlserv.c.

References LOG_ERROR, LOG_HTTPD, LOG_XMLCD, LogMsg(), TcpStreamAccept(), XMLD_CMD_TCP_PORT, XMLD_MAX_SEGSIZE, XMLD_TCP_BUFSIZE, XMLD_TCP_TIMEOUT, and XmlProcessCommands().

Referenced by XmlServerStart().

Here is the call graph for this function:

LogMsgTcpStreamAcceptXmlProcessCommandsXmlRefresh

XmlRepoService ( void *  arg  ) 

XML report thread.

This thread sends XML reports to a connected client.

Definition at line 223 of file xmlserv.c.

References LOG_WARN, LOG_XMLRD, LogMsg(), StartReportServiceThread(), TcpStreamAccept(), xml_infoq, XMLD_MAX_SEGSIZE, XMLD_MIN_THREADS, XMLD_REPO_TCP_PORT, xmld_tc, XMLD_TCP_BUFSIZE, XMLD_TCP_TIMEOUT, and XmlProcessReports().

Referenced by StartReportServiceThread().

Here is the call graph for this function:

LogMsgStartReportServiceThreadTcpStreamAcceptXmlProcessReportsUserIfGetDisplayText

int XmlServerStart ( void   ) 

XML Server Start.

Starts a hard coded number of reporter threads and one command thread.

Returns:
0 on success, -1 otherwise.

Definition at line 325 of file xmlserv.c.

Referenced by main().


Variable Documentation

int xmld_tc [static]

Definition at line 74 of file xmlserv.c.

Referenced by StartReportServiceThread(), XmlRepoService(), and XmlServerStart().

HANDLE xml_infoq [static]

Definition at line 77 of file xmlserv.c.

Referenced by XmlRefresh(), and XmlRepoService().


© 2008 by egnite GmbH - visit www.ethernut.de