Core networking libraries including LwIP implementation
Dependencies: DebugLib lwip_ppp_ethernet
Dependents: EthernetNetworkLib
LwIPInterface.h
00001 /* LwIPInterface.h */ 00002 /* 00003 Copyright (C) 2012 ARM Limited. 00004 00005 Permission is hereby granted, free of charge, to any person obtaining a copy of 00006 this software and associated documentation files (the "Software"), to deal in 00007 the Software without restriction, including without limitation the rights to 00008 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 00009 of the Software, and to permit persons to whom the Software is furnished to do 00010 so, subject to the following conditions: 00011 00012 The above copyright notice and this permission notice shall be included in all 00013 copies or substantial portions of the Software. 00014 00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00019 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00020 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00021 SOFTWARE. 00022 */ 00023 00024 #ifndef LWIPINTERFACE_H_ 00025 #define LWIPINTERFACE_H_ 00026 00027 #include "core/fwk.h" 00028 #include "IPInterface.h" 00029 00030 #include "rtos.h" 00031 00032 /** LwIP-based network interface 00033 * 00034 */ 00035 class LwIPInterface : public IPInterface 00036 { 00037 public: 00038 LwIPInterface(); 00039 virtual ~LwIPInterface(); 00040 00041 virtual int init(); //Init LwIP-specific stuff, create the right bindings, etc 00042 virtual int connect() = 0; 00043 virtual int disconnect() = 0; 00044 00045 private: 00046 static void tcpipRdyCb(void* ctx); //Result of TCP/IP thread launch 00047 Semaphore m_rdySphre; 00048 }; 00049 00050 #endif /* LWIPINTERFACE_H_ */
Generated on Sun Jul 17 2022 01:35:55 by 1.7.2