Customized
Dependents: MurataTypeYD_RPC_Sample
Fork of SNICInterface_mod by
Diff: Socket/Endpoint.cpp
- Revision:
- 33:33f1bc919486
- Parent:
- 29:6a0ba999597d
- Child:
- 35:e4e7f86fd975
diff -r ae95309643aa -r 33f1bc919486 Socket/Endpoint.cpp --- 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; }