2015-02-03 22:07:22 +00:00
|
|
|
|
2015-02-03 23:19:16 +00:00
|
|
|
#include <lwip/init.h>
|
2015-02-03 22:07:22 +00:00
|
|
|
#include <lwip/ip.h>
|
|
|
|
#include <lwip/sockets.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, const char *argv[])
|
|
|
|
{
|
2015-02-03 23:19:16 +00:00
|
|
|
struct netif netif;
|
|
|
|
static ip_addr_t addr, mask, gw;
|
|
|
|
|
|
|
|
IP4_ADDR(&addr, 192, 168, 0, 1);
|
|
|
|
IP4_ADDR(&mask, 255, 255, 255, 0);
|
|
|
|
IP4_ADDR(&gw, 0, 0, 0, 0);
|
|
|
|
|
|
|
|
lwip_init();
|
|
|
|
|
2015-02-03 22:07:22 +00:00
|
|
|
lwip_socket(AF_INET, SOCK_STREAM, IP_PROTO_TCP);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|