initial commit

This commit is contained in:
2017-03-12 12:42:19 +01:00
parent fedf2b7b90
commit dcb9ea4d44
12 changed files with 1435 additions and 0 deletions

27
net/IP.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef IP_H
#define IP_H
#define Port uint16_t
struct IP {
uint32_t val;
/** empty ctor */
IP() : val(0) {
;
}
/** ctor with IP-string */
IP(const char* ipStr) {
set(ipStr);
}
/** set the IP */
void set(const char* ipStr) {
val = ipaddr_addr(ipStr);
}
};
#endif // IP_H