/home/midibox/svn_snapshot/mios32/trunk/modules/uip/apps/dhcpc/dhcpc.h File Reference

#include "timer.h"
#include "pt.h"

Data Structures

struct  dhcpc_state

Defines

#define UIP_UDP_APPCALL   dhcpc_appcall

Typedefs

Appication specific configurations

An uIP application is implemented using a single application function that is called by uIP whenever a TCP/IP event occurs. The name of this function must be registered with uIP at compile time using the UIP_APPCALL definition.

uIP applications can store the application state within the uip_conn structure by specifying the type of the application structure by typedef:ing the type uip_tcp_appstate_t and uip_udp_appstate_t.

The file containing the definitions must be included in the uipopt.h file.

The following example illustrates how this can look.

void httpd_appcall(void);
#define UIP_APPCALL     httpd_appcall

struct httpd_state {
  u8_t state;
  u16_t count;
  char *dataptr;
  char *script;
};
typedef struct httpd_state uip_tcp_appstate_t


typedef struct dhcpc_state uip_udp_appstate_t

Functions

void dhcpc_init (const void *mac_addr, int mac_len)
void dhcpc_request (void)
void dhcpc_appcall (void)
void dhcpc_configured (const struct dhcpc_state *s)

Define Documentation

#define UIP_UDP_APPCALL   dhcpc_appcall

Function Documentation

void dhcpc_appcall ( void   ) 
void dhcpc_configured ( const struct dhcpc_state s  ) 
void dhcpc_init ( const void *  mac_addr,
int  mac_len 
)
void dhcpc_request ( void   ) 

Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1