📄 http.c
字号:
//**********************************
//*版本: Test 1.0
//*作者: XUGUOHONG
//*E-MAIL: KK20Y@YAHOO.COM.CN
//*WEBSITE:microdesign.000webhost.com
//**********************************
#include <http.h>
#include <http.h>
#include <tcp.h>
#include <udp.h>
#include <icmp.h>
#include <ip.h>
#include <rtl8019as.h>
//**********************************
//* 系统 MAC地址设定(根据需要修正)
//**********************************
extern unsigned char SYSMAC[6];
//**********************************
//* 系统 IP地址设定(根据需要修正)
//**********************************
extern unsigned char SYSIP[4];
extern unsigned int tcp_remote_dsz; // 收到对方TCP数据载体长度
extern unsigned int tcp_remote_dpt; // 收到对方TCP数据载体指针
void http_handle(void);
void http_handle(void)
{
unsigned int temp;
unsigned char data;
if(tcp_remote_dsz!=0)
{
//temp=0;
//data='s';
// while(data!='|')
//{
// data=uart_rev();
//uart_send(data);
//temp=temp+1;
//write_62256(temp+TCP_DSTART-1,data);
//}
// data=0;
for(temp=0;temp<1141;temp++)
write_62256(temp+TCP_DSTART,iic_rrom(temp));
tcpserver_send_data(temp,20,0x10);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -