Port of LwIP performed by Ralf in 2010. Not recommended for use with recent mbed libraries, but good demos of raw LwIP possible

Dependents:   LwIP_raw_API_serverExample tiny-dtls

Committer:
RodColeman
Date:
Tue Sep 18 14:41:24 2012 +0000
Revision:
0:0791c1fece8e
[mbed] converted /Eth_TCP_Wei_Server/lwip

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RodColeman 0:0791c1fece8e 1 #ifndef LWIP_UTILS_H
RodColeman 0:0791c1fece8e 2 #define LWIP_UTILS_H
RodColeman 0:0791c1fece8e 3
RodColeman 0:0791c1fece8e 4 #include "ipv4/lwip/ip_addr.h"
RodColeman 0:0791c1fece8e 5
RodColeman 0:0791c1fece8e 6 #ifdef __cplusplus
RodColeman 0:0791c1fece8e 7 extern "C" {
RodColeman 0:0791c1fece8e 8 #endif
RodColeman 0:0791c1fece8e 9
RodColeman 0:0791c1fece8e 10 /**
RodColeman 0:0791c1fece8e 11 * This method converts 4 given IPv4 tuples to struct ip_addr classes.
RodColeman 0:0791c1fece8e 12 * The Byte are seperated by ,
RodColeman 0:0791c1fece8e 13 * Does only work with seperated 4 Byte tuple.
RodColeman 0:0791c1fece8e 14 */
RodColeman 0:0791c1fece8e 15 inline struct ip_addr IPv4(u8_t ip0, u8_t ip1, u8_t ip2, u8_t ip3) {
RodColeman 0:0791c1fece8e 16 struct ip_addr addr;
RodColeman 0:0791c1fece8e 17 IP4_ADDR(&addr, ip0, ip1, ip2, ip3);
RodColeman 0:0791c1fece8e 18 return addr;
RodColeman 0:0791c1fece8e 19 }
RodColeman 0:0791c1fece8e 20
RodColeman 0:0791c1fece8e 21 unsigned int base64enc_len(const char *str);
RodColeman 0:0791c1fece8e 22
RodColeman 0:0791c1fece8e 23 void base64enc(const char *input, unsigned int length, char *output);
RodColeman 0:0791c1fece8e 24
RodColeman 0:0791c1fece8e 25 #ifdef __cplusplus
RodColeman 0:0791c1fece8e 26 }
RodColeman 0:0791c1fece8e 27 #endif
RodColeman 0:0791c1fece8e 28
RodColeman 0:0791c1fece8e 29 #endif /* LWIP_UTILS_H */