⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpd.i

📁 凌阳单片机之以太网通讯模组模组
💻 I
📖 第 1 页 / 共 2 页
字号:
# 1 "G:/\301\350\321\364\265\245\306\254\273\372/\320\302\275\250\316\304\274\376\274\320/9.\304\243\327\351\327\312\301\317/\322\324\314\253\315\370\315\250\321\266\304\243\327\351/\322\324\314\253\315\370DemoCode/DemoCode/code/httpd.c"
 































 
 
 



# 1 "..\\code\\include\\config.h" 1




















# 1 "..\\unip\\include\\lwipopts.h" 1
 


























 
 

 




 


 













# 1 "..\\unip\\include\\unsp\\include\\cc.h" 1
 




































typedef unsigned int     u8_t;
typedef signed char      s8_t;
typedef unsigned int    u16_t;
typedef signed   int    s16_t;
 
 
typedef unsigned long int    u32_t;
typedef signed  long int    s32_t;

 











# 53 "..\\unip\\include\\lwipopts.h" 2

# 1 "..\\unip\\include\\lwip\\def.h" 1
 

































 












# 54 "..\\unip\\include\\lwipopts.h" 2

# 1 "..\\unip\\include\\lwip\\mem.h" 1
 

































# 1 "..\\unip\\include\\lwip\\opt.h" 1
 

































# 1 "..\\unip\\include\\lwip\\debug.h" 1
 


































# 1 "..\\unip\\include\\lwipopts.h" 1
 





# 76 "..\\unip\\include\\lwipopts.h"

# 36 "..\\unip\\include\\lwip\\debug.h" 2

# 1 "..\\unip\\include\\unsp\\include\\pollio.h" 1
 
 
 
 
 
 
 
 
 
 
 
 
 




 

typedef enum parm_type
    {
    FLAG = 1, IP = 2, HEX = 3, DECIMAL = 4, CHAR = 5, STRING = 6
    } PARM_TYPE;


extern u16_t g_cur_dev, *g_cur_pos, g_cur_offset;
 
 
 





 
 
 








 



 
 
 


 
 
 
 
typedef struct
{
    s16_t width;             
    u8_t space;            
    u8_t right;            
    u8_t alter;            
    u8_t plus;             
    u8_t zero;             
    u8_t mod;              
    u8_t type;             
} FORMAT;

 
 
 








                              


# 96 "..\\unip\\include\\unsp\\include\\pollio.h"

 



                               	



# 113 "..\\unip\\include\\unsp\\include\\pollio.h"
 

extern void Print(char *  , ...);


extern u8_t read_string(char * );
 
 
 
 
 
 
 


extern unsigned long  get_number(void);
 
 
 
 
 
 

 



# 37 "..\\unip\\include\\lwip\\debug.h" 2


 









 




 

 


 

 

 

 


# 77 "..\\unip\\include\\lwip\\debug.h"













# 35 "..\\unip\\include\\lwip\\opt.h" 2

 
# 1 "..\\unip\\include\\lwipopts.h" 1
 





# 76 "..\\unip\\include\\lwipopts.h"

# 37 "..\\unip\\include\\lwip\\opt.h" 2

# 1 "..\\unip\\include\\unsp\\include\\lib.h" 1
 






































u16_t htons(u16_t n);
u16_t ntohs(u16_t n);

u32_t htonl(u32_t n);
u32_t ntohl(u32_t n);

u16_t getbyte(u16_t *data, u16_t offset);
void putbyte(u16_t *data, u8_t ch, u16_t offset);
u16_t packstrncat(u16_t *data, char *str, u16_t offset);
u16_t tcp_tmr_timeout(void);
u16_t dhcp_coarse_timeout(void);
u16_t dhcp_fine_timeout(void);
u16_t gettimeofnow(void);
void PackPrint(u16_t *pstr);
u16_t packstrlen(char *str);
void PackPrintLen(u16_t *pstr,u16_t len);
int StrToInt(char *s);
void SystemServiceLoop();



# 38 "..\\unip\\include\\lwip\\opt.h" 2


 

 

 











 
 







 





 






 




 




 




 




 





 

 



 



 





 






 
 





 





 








 

 




 






 






 









 
 






 





 




 




 




 





 





 





 








 





















 





 




 




 






 

 

 






































 




# 342 "..\\unip\\include\\lwip\\opt.h"


 





# 429 "..\\unip\\include\\lwip\\opt.h"



 


































































































































# 35 "..\\unip\\include\\lwip\\mem.h" 2

# 1 "..\\unip\\include\\lwip\\arch.h" 1
 

























































# 191 "..\\unip\\include\\lwip\\arch.h"



# 36 "..\\unip\\include\\lwip\\mem.h" 2






typedef u16_t mem_size_t;


struct mem {
  mem_size_t next, prev;
  u16_t used;
}; 

void mem_init(void);

void *mem_malloc(mem_size_t size);
void mem_free(void *mem);
void *mem_realloc(void *mem, mem_size_t size);
void *mem_reallocm(void *mem, mem_size_t size);

 

 



 




extern  u16_t ram [] ;
extern  u16_t mem_size   ;




# 55 "..\\unip\\include\\lwipopts.h" 2

# 1 "..\\unip\\include\\lwip\\pbuf.h" 1
 






























 









typedef enum {
  PBUF_TRANSPORT,
  PBUF_IP,
  PBUF_LINK,
  PBUF_RAW
} pbuf_layer;

typedef enum {
  PBUF_RAM,
  PBUF_ROM,
  PBUF_REF,
  PBUF_POOL
} pbuf_flag;

 






 


struct pbuf {
   
  struct pbuf *next;

   
  void *payload;
  
   






  u16_t tot_len;
  
   
  u16_t len;  

   
  u16_t flags;
  
   




  u16_t ref;
  
};

 




void pbuf_init(void);

struct pbuf *pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag);
void pbuf_realloc(struct pbuf *p, u16_t size); 
u8_t pbuf_header(struct pbuf *p, s16_t header_size);
void pbuf_ref(struct pbuf *p);
void pbuf_ref_chain(struct pbuf *p);
u8_t pbuf_free(struct pbuf *p);
u8_t pbuf_clen(struct pbuf *p);
void pbuf_cat(struct pbuf *h, struct pbuf *t);
void pbuf_chain(struct pbuf *h, struct pbuf *t);
struct pbuf *pbuf_take(struct pbuf *f);

struct pbuf *pbuf_dechain(struct pbuf *p);



extern  u8_t pbuf_pool_memory  [] ;
extern  u16_t pool_num  ;
extern  u16_t pool_size  ;



# 56 "..\\unip\\include\\lwipopts.h" 2

# 1 "..\\unip\\include\\lwip\\ip_addr.h" 1
 



































 








 



































 
struct ip_addr {
   u32_t addr  __attribute__((packed)) ;
} __attribute__((packed)) ;
 




 
struct in_addr {
	u32_t s_addr;
};

extern const struct ip_addr ip_addr_any;
extern const struct ip_addr ip_addr_broadcast;






















				   



















# 57 "..\\unip\\include\\lwipopts.h" 2

# 1 "..\\unip\\include\\lwip\\netif.h" 1
 



































# 1 "..\\unip\\include\\lwip\\err.h" 1
 





































typedef s8_t err_t;

 































# 37 "..\\unip\\include\\lwip\\netif.h" 2




# 1 "..\\unip\\include\\lwip\\inet.h" 1
 







































u16_t inet_chksum(void *dataptr, u16_t len);
u16_t inet_chksum_pbuf(struct pbuf *p);
u16_t inet_chksum_pseudo(struct pbuf *p,
			 struct ip_addr *src, struct ip_addr *dest,
			 u8_t proto, u16_t proto_len);

u32_t inet_addr(const char *cp);
int inet_aton(const char *cp, struct in_addr *addr);
u8_t *inet_ntoa(u32_t addr);  




 
 
 



 
 
 







u16_t htons(u16_t x);
u16_t ntohs(u16_t x);
u32_t htonl(u32_t x);
u32_t ntohl(u32_t x);




# 41 "..\\unip\\include\\lwip\\netif.h" 2






 



 

 



 

 

 

 



 
struct netif {
   
  struct netif *next;
   

  
   
  struct ip_addr ip_addr;
  struct ip_addr netmask;
  struct ip_addr gw;

   

  err_t (* input)(struct pbuf *p, struct netif *inp);
   


  err_t (* output)(struct netif *netif, struct pbuf *p,
		   struct ip_addr *ipaddr);
   


  err_t (* linkoutput)(struct netif *netif, struct pbuf *p);
   

  void *state;




   
  unsigned char hwaddr_len;
   
  unsigned char hwaddr[3U ];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -