Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket创建必须要物理link up #63

Open
zt449569708 opened this issue Oct 22, 2021 · 1 comment
Open

socket创建必须要物理link up #63

zt449569708 opened this issue Oct 22, 2021 · 1 comment

Comments

@zt449569708
Copy link

问题:
当在创建socket时,wiz_socket函数会去调用WIZ_INIT_STATUS_CHECK来检查物理上是否link up,并且accept函数里面也是,这就导致我不插网线时,无法创建socket。这种做法不符合通用的使用方法。

环境:
RT-Thread Studio 2.1.2
wiznet latest

@xiangxistu
Copy link
Collaborator

wiznet 那种是外置协议栈,如果不处于 LINK UP 状态,及时调用了 accept 这些接口,也无法正确配置 w5500 模块;我感觉这个状态是正常的,应该是应用层给予处理;如果网络没有就绪,就先不要进行数据服务。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants