sample

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 (char *name, char *ipadder)
 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 ( char *  name,
char *  ipadder 
)

Constructor: Initializes DhcpServer.

Parameters:
namea pointer to a string containing the server name. (e.g."ServerName")
ipaddera pointer to a string containing the server IP address. (e.g."192.168.0.1")

Definition at line 115 of file DhcpServer.cpp.

~DhcpServer (  ) [virtual]

Destructor.

Definition at line 185 of file DhcpServer.cpp.