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.
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: SocketInterface.cpp
- Branch:
- api-changes
- Revision:
- 28:163fbe3263f4
- Parent:
- 23:1e86d9fb3d86
- Child:
- 31:7f15b95f2a1d
diff -r d7ed39727306 -r 163fbe3263f4 SocketInterface.cpp
--- 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;
-}
-
