RT-Thread-packages / wiznet

WIZnet TCP/IP chips (such as W5500/W5100..) SAL framework implement.
Apache License 2.0
49 stars 35 forks source link

wiz_recvfrom()错误时返回值不能区分错误的详细类型 #46

Closed shishirong closed 1 year ago

shishirong commented 4 years ago

比如发生“WIZnet recvfrom failed, get socket(%d) register state(%d) error.”和“WIZnet recvfrom input data or length error!”等错误都是返回-1。

xiangxistu commented 3 years ago

返回的错误信息,确实都为 -RT_ERROR。有什么好的建议来区分吗?

shishirong commented 1 year ago

算了,将就-RT_ERROR吧,也不是不能用