tfDhcpdUserExecute

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCP Server

#include <trsocket.h>


int tfDhcpdUserExecute (void);


Function Description

This function executes the Treck DHCP server main loop. It needs to be called periodically by the main program in non-blocking mode, and called once in blocking mode.


Parameters

  • NONE


Returns

  • TM_ENOERROR
    Success.
  • TM_EPERM
    The DHCP server is already running.


Usage

This function must be called after calling either tfDhcpdUserConfigFromFile() or tfDhcpdUserConfigFromBuffer(), and after calling tfDhcpdUserStart().

Table of Contents >> Optional Protocols >> DHCP Server