hello-world.h

Go to the documentation of this file.
00001  #ifndef __HELLO_WORLD_H__
00002  #define __HELLO_WORLD_H__
00003  
00004  /* Since this file will be included by uip.h, we cannot include uip.h
00005     here. But we might need to include uipopt.h if we need the u8_t and
00006     u16_t datatypes. */
00007  #include "uipopt.h"
00008 
00009  #include "psock.h"
00010  
00011  /* Next, we define the uip_tcp_appstate_t datatype. This is the state
00012     of our application, and the memory required for this state is
00013     allocated together with each TCP connection. One application state
00014     for each TCP connection. */
00015 typedef struct hello_world_state {
00016    char inputbuffer[10];
00017    char name[40];
00018  } uip_tcp_appstate_t;
00019 
00020  struct psock p;
00021 
00022  /* Finally we define the application function to be called by uIP. */
00023  void hello_world_appcall(void);
00024  #ifndef UIP_APPCALL
00025  #define UIP_APPCALL hello_world_appcall
00026  #endif /* UIP_APPCALL */
00027  
00028  void hello_world_init(void);
00029  
00030  #endif /* __HELLO_WORLD_H__ */
00031