lwIP Echo Server
----------------
The lwIP Echo server application starts an echo server at port 7. Any data sent to
this port is simply echoed back.
By default, the program assigns the following settings to the board:
IP Address: 192.168.1.10
Netmask : 255.255.255.0
Gateway : 192.168.1.1
MAC address: 00:0a:35:00:01:02
These settings can be changed in the file main.c.
The main echo server logic is present in the file echo.c.
platform.c implements certain processor and platform dependent functions.
The file platform_config.h is generated based on the hardware design. It makes two
assumptions: The timer has its interrupt line connected to the interrupt controller,
and all the ethernet peripherals (xps_ethernetlite or xps_ll_temac) accessible from
the processor can be used with lwIP.
Running the Echo Server example
-------------------------------
To connect and test the echo server, download and run the program on the board,
and then issue the following command from your host machine:
$ telnet 192.168.1.10 7
Trying 192.168.1.10...
Connected to 192.168.1.10.
Escape character is '^]'.
hello world
hello world
all messages will be echo'ed back
all messages will be echo'ed back
^]
telnet> quit
Connection closed.
$
lwIPv6 Echo Server
----------------
The lwIPv6 Echo server application starts an echo server at port 7. Any data sent to
this port is simply echoed back.
By default, the program assigns the following settings to the board:
IPv6 address: FE80:0:0:0:20A:35FF:FE00:102
MAC address: 00:0a:35:00:01:02
These settings can be changed in the file main.c.
The main echo server logic is present in the file echo.c.
platform.c implements certain processor and platform dependent functions.
The file platform_config.h is generated based on the hardware design. It makes two
assumptions: The timer has its interrupt line connected to the interrupt controller,
and all the ethernet peripherals (xps_ethernetlite or xps_ll_temac) accessible from
the processor can be used with lwIP.
Running the Echo Server example
-------------------------------
To connect and test the echo server, download and run the program on the board,
and then issue the following command from your host machine:
$ telnet -6 FE80:0:0:0:20A:35FF:FE00:102%eth1 7
Trying fe80::20a:35ff:fe00:102%eth1...
Connected to FE80:0:0:0:20A:35FF:FE00:102%eth1.
Escape character is '^]'.
hello world
hello world
all messages will be echo'ed back
all messages will be echo'ed back
^]
telnet> quit
Connection closed.
$
References
----------
More details regarding the echo server can be obtained from Xilinx XAPP 1026:
http://www.xilinx.com/support/documentation/application_notes/xapp1026.pdf
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
selectmap.rar (19个子文件)
src
qspi_remote_update.h 455B
platform_zynq.c 7KB
platform.h 2KB
slave_selectmap.c 13KB
echo.c 5KB
Xilinx.spec 36B
sfp.c 7KB
platform_zynqmp.c 5KB
si5324.c 7KB
iic_phyreset.c 4KB
platform.c 5KB
lscript.ld 6KB
README.txt 3KB
platform_config.h 158B
platform_ppc.c 3KB
i2c_access.c 14KB
main.c 6KB
qspips.c 18KB
platform_mb.c 3KB
共 19 条
- 1
资源评论
weixin_43189165
- 粉丝: 86
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
- 基于同态加密技术的匿名电子投票系统源码.zip
- Pyqt5项目框架-PyQt项目开发实践
- 基于C通过MQTT的智能农业大棚管理系统(本科毕业设计)
- python+CNN的网络入侵检测算法源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功