Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
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 }
Generated on Tue Jul 12 2022 16:22:57 by
