NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
28:163fbe3263f4
Parent:
23:1e86d9fb3d86
Child:
31:7f15b95f2a1d
--- a/SocketInterface.cpp	Thu Feb 18 09:20:39 2016 -0600
+++ b/SocketInterface.cpp	Thu Feb 18 13:19:47 2016 -0600
@@ -15,34 +15,7 @@
  */
 
 #include "SocketInterface.h"
-#include <stdlib.h>
-#include <string.h>
-
-#define IP_SIZE 16
-
-SocketInterface::SocketInterface()
-  : _ip_address(0)
-  , _port(0) {
-}
-
-SocketInterface::~SocketInterface() {
-    if (_ip_address) free(_ip_address);
-}
 
-void SocketInterface::setIPAddress(const char *ip) {
-    _ip_address = (char*)malloc(IP_SIZE);
-    strcpy(_ip_address, ip);
-}
-
-void SocketInterface::setPort(uint16_t port) {
-    _port = port;
-}
+void SocketInterface::setIPAddress(const char *ip) {}
+void SocketInterface::setPort(uint16_t port) {}
 
-const char *SocketInterface::getIPAddress() {
-    return _ip_address;
-}
-
-uint16_t SocketInterface::getPort() {
-    return _port;
-}
-