Daiki Kato / DhcpServer_mbed-os

Fork of DhcpServer by Daiki Kato

Embed: (wiki syntax)

« Back to documentation index

DhcpServer Class Reference

DhcpServer Class Reference

This class is intended for use the mbed board as a DHCP server. More...

#include <DhcpServer.h>

Public Member Functions

 DhcpServer (NetworkInterface *net, const char *name)
 Constructor: Initializes DhcpServer.
virtual ~DhcpServer ()
 Destructor.

Detailed Description

This class is intended for use the mbed board as a DHCP server.

This class can be allocated five IP addresses. Top 3byte of IP address is the same as the server address, the lower 1byte is 10-14 is allocated. For example, if the server address is "192.168.0.1", IP address will be allocated "192.168.0.10" ~ "192.168.0.14".

Definition at line 13 of file DhcpServer.h.


Constructor & Destructor Documentation

DhcpServer ( NetworkInterface *  net,
const char *  name 
)

Constructor: Initializes DhcpServer.

Parameters:
netCommon interface that is shared between network devices
namea pointer to a string containing the server name. (e.g."ServerName")

Definition at line 141 of file DhcpServer.cpp.

~DhcpServer (  ) [virtual]

Destructor.

Definition at line 215 of file DhcpServer.cpp.