SNIC UART Interface library for Murata Type-YD module

Dependents:   WebSocketServerTest

Fork of SNICInterface_mod by Toyomasa Watarai

Revision:
33:33f1bc919486
Parent:
29:6a0ba999597d
Child:
35:e4e7f86fd975
--- a/Socket/Endpoint.cpp	Fri May 30 08:30:40 2014 +0000
+++ b/Socket/Endpoint.cpp	Tue Jun 03 08:53:07 2014 +0000
@@ -43,7 +43,7 @@
 
 void Endpoint::reset_address(void)
 {
-    _ipAddress[0] = '\0';
+    mIpAddress[0] = '\0';
 }
 
 #include "stdio.h"
@@ -52,15 +52,18 @@
 {
     reset_address();
     
+    strcpy( mIpAddress, host );
+    mPort = port;
+    
     return 0;
 }
 
 char* Endpoint::get_address()
 {
-    return 0;
+    return mIpAddress;
 }
 
 int   Endpoint::get_port()
 {
-    return 0;
+    return mPort;
 }