This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Net.h Source File

Net.h

00001 #pragma once
00002 ////////////////////////////////////////////////////////////////////////////////
00003 // Net.h
00004 ////////////////////////////////////////////////////////////////////////////////
00005 
00006 #include "NyLPC_net.h"
00007 #include "netif/INetIf.h"
00008 
00009 namespace MiMic
00010 {
00011     class NetConfig;
00012     class Net
00013     {
00014     public:
00015         /**
00016          * Path of upnp services on HTTP server.
00017          */
00018         const static char* UPNP_ROOT_PATH;
00019     private:
00020         NyLPC_TcMDnsServer_t* _mdns;
00021         NyLPC_TcUPnP_t* _upnp;
00022     public:
00023         /**
00024          * The constructor.
00025          * Must be call after the RTOS started.
00026          */
00027         Net(INetif& i_netif);
00028         virtual ~Net();
00029         /**
00030          * This function starts networking with configulation. 
00031          * @param i_cfg
00032          * configuration parameter.
00033          * Must be hold until instance is freed.
00034          * This may be changed by initializer it has DHCP or AUTOIP flag.
00035          */
00036         void start(NetConfig& i_cfg);
00037         void stop();
00038     public:
00039         /**
00040          * UPnP instance
00041          */
00042         const NyLPC_TcUPnP_t* refUPnPInstance()const{return this->_upnp;}
00043     };
00044 }