?? 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>
//**********************************
//* 系統(tǒng) MAC地址設定(根據(jù)需要修正)
//**********************************
extern unsigned char SYSMAC[6];
//**********************************
//* 系統(tǒng) IP地址設定(根據(jù)需要修正)
//**********************************
extern unsigned char SYSIP[4];
extern unsigned int tcp_remote_dsz; // 收到對方TCP數(shù)據(jù)載體長度
extern unsigned int tcp_remote_dpt; // 收到對方TCP數(shù)據(jù)載體指針
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 + -