for EthernetInterface library compatibility.\\ ** Unoffical fix. may be a problem. **
Dependents: SNIC-httpclient-example SNIC-ntpclient-example
Fork of SNICInterface by
Revision 26:f2e1030964e4, committed 2014-03-28
- Comitter:
- kishino
- Date:
- Fri Mar 28 03:03:40 2014 +0000
- Parent:
- 25:67183ed15708
- Child:
- 27:dcc4f34448f0
- Commit message:
- Created a virtual destructor
Changed in this revision
--- a/SNIC/MurataObject.h Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/MurataObject.h Fri Mar 28 03:03:40 2014 +0000
@@ -16,9 +16,9 @@
namespace murata_wifi
{
-
class C_MurataObject{
+};
}
#endif
--- a/SNIC/SNIC_Core.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_Core.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -52,6 +52,10 @@
mUartRecvThread_p = NULL;
}
+C_SNIC_Core::~C_SNIC_Core()
+{
+}
+
int C_SNIC_Core::initUart(PinName tx, PinName rx, int baud)
{
// printf("[C_SNIC_Core::initUart]1\r\n");
--- a/SNIC/SNIC_Core.h Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_Core.h Fri Mar 28 03:03:40 2014 +0000
@@ -262,6 +262,7 @@
*/
C_SNIC_Core();
+ virtual ~C_SNIC_Core();
/** Receiving thread of UART
*/
static void uartRecvThread( void const *args_p );
--- a/SNIC/SNIC_UartCommandManager.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_UartCommandManager.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -16,6 +16,10 @@
using namespace murata_wifi;
+C_SNIC_UartCommandManager::~C_SNIC_UartCommandManager()
+{
+}
+
void C_SNIC_UartCommandManager::setCommandID( unsigned char cmd_id )
{
mCommandID = cmd_id;
--- a/SNIC/SNIC_UartCommandManager.h Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_UartCommandManager.h Fri Mar 28 03:03:40 2014 +0000
@@ -61,6 +61,8 @@
friend class Socket;
private:
+ virtual ~C_SNIC_UartCommandManager();
+
/** Set Command ID
@param cmd_id Command ID
*/
--- a/SNIC/SNIC_UartMsgUtil.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_UartMsgUtil.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -19,6 +19,10 @@
{
}
+C_SNIC_UartMsgUtil::~C_SNIC_UartMsgUtil()
+{
+}
+
unsigned short C_SNIC_UartMsgUtil::makePayload( unsigned int cmd_len, unsigned char *cmd_p, unsigned char *payload_p )
{
unsigned short payload_len = 0;
--- a/SNIC/SNIC_UartMsgUtil.h Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC/SNIC_UartMsgUtil.h Fri Mar 28 03:03:40 2014 +0000
@@ -139,6 +139,7 @@
private:
C_SNIC_UartMsgUtil();
+ virtual ~C_SNIC_UartMsgUtil();
/** Make SNIC UART command payload.
@param cmd_len Command length
--- a/SNIC_WifiInterface.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC_WifiInterface.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -25,6 +25,10 @@
mModuleReset = reset;
}
+C_SNIC_WifiInterface::~C_SNIC_WifiInterface()
+{
+}
+
int C_SNIC_WifiInterface::init()
{
C_SNIC_Core *snic_core_p = C_SNIC_Core::getInstance();
--- a/SNIC_WifiInterface.h Fri Mar 28 01:56:08 2014 +0000
+++ b/SNIC_WifiInterface.h Fri Mar 28 03:03:40 2014 +0000
@@ -44,6 +44,7 @@
@param baud baud rate of Serial interface (default: 9600)
*/
C_SNIC_WifiInterface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200);
+ virtual ~C_SNIC_WifiInterface();
/** Initialize the interface.
@return 0 on success, a negative number on failure
--- a/Socket/Socket.h Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/Socket.h Fri Mar 28 03:03:40 2014 +0000
@@ -72,7 +72,7 @@
*/
int close(bool shutdown=true);
- ~Socket();
+ virtual ~Socket();
int createSocket( unsigned char bind = 0, unsigned int local_addr = 0, unsigned short port = 0 );
--- a/Socket/TCPSocketConnection.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/TCPSocketConnection.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -36,6 +36,10 @@
{
}
+TCPSocketConnection::~TCPSocketConnection()
+{
+}
+
int TCPSocketConnection::connect( unsigned int ip_addr, unsigned short port)
{
int ret;
--- a/Socket/TCPSocketConnection.h Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/TCPSocketConnection.h Fri Mar 28 03:03:40 2014 +0000
@@ -47,6 +47,7 @@
/** TCP socket connection
*/
TCPSocketConnection();
+ virtual ~TCPSocketConnection();
/** Connects this TCP socket to the server
@param host The ip address to connect to.(hexadecimal)("192.168.0.1"->0xC0A80001)
--- a/Socket/TCPSocketServer.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/TCPSocketServer.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -37,6 +37,10 @@
{
}
+TCPSocketServer::~TCPSocketServer()
+{
+}
+
int TCPSocketServer::bind(int port)
{
return 0;
--- a/Socket/TCPSocketServer.h Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/TCPSocketServer.h Fri Mar 28 03:03:40 2014 +0000
@@ -46,6 +46,7 @@
/** Instantiate a TCP Server.
*/
TCPSocketServer();
+ virtual ~TCPSocketServer();
/** Bind a socket to a specific port.
\param port The port to listen for incoming connections on.
--- a/Socket/UDPSocket.cpp Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/UDPSocket.cpp Fri Mar 28 03:03:40 2014 +0000
@@ -37,6 +37,10 @@
UDPSocket::UDPSocket() {
}
+UDPSocket::~UDPSocket()
+{
+}
+
int UDPSocket::init(void)
{
return 0;
--- a/Socket/UDPSocket.h Fri Mar 28 01:56:08 2014 +0000
+++ b/Socket/UDPSocket.h Fri Mar 28 03:03:40 2014 +0000
@@ -47,6 +47,7 @@
/** Instantiate an UDP Socket.
*/
UDPSocket();
+ virtual ~UDPSocket();
/** Init the UDP Client Socket without binding it to any specific port
\return 0 on success, -1 on failure.
ban4jp -
