This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
mbed/IpAddr.h
- Committer:
- nyatla
- Date:
- 2013-09-27
- Revision:
- 58:03b89038b21a
- Child:
- 60:803de2088243
File content as of revision 58:03b89038b21a:
#pragma once //////////////////////////////////////////////////////////////////////////////// // TcpSocket.h //////////////////////////////////////////////////////////////////////////////// #include "NyLPC_net.h" namespace MiMic { /** * This class hold IP address. */ class IpAddr { public: union TAddrs{ struct NyLPC_TIPv4Addr v4; }addr; public: IpAddr(unsigned char p4,unsigned char p3,unsigned char p2,unsigned char p1) {this->setIPv4(p4,p3,p2,p1);} void setIPv4(unsigned char p4,unsigned char p3,unsigned char p2,unsigned char p1) {NyLPC_TIPv4Addr_set(&this->addr.v4,p4,p3,p2,p1);} void setIPv4(const struct NyLPC_TIPv4Addr& v4) {this->addr.v4=v4;} }; }