recv Function in socket.c
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: recv Function in socket.c
by JustDavid ·
When I send an email to WIZnet, they tell me to post my issues here. Well, I’ve done that… Could I get a WIZnet response, please? Pretty please!
RE: recv Function in socket.c
by louis ·
hi David,
Chip and MCU communicate. This is the process of double-checking the data sent.
else if (getSn_TX_FSR(sn) == getSn_TxMAX(sn)) is It reads the register value on the chip.
Thank you.
RE: recv Function in socket.c
by JustDavid ·
But, why is it checking the TX registers rather than the RX registers? This the recv() function.
RE: RE: recv Function in socket.c
by lawrence WIZnet ·
Hi @JustDavid
you need to know the upper condition is in “if (tmp == SOCK_CLOSE_WAIT)”.
Socket_closed_wait means socket recved FIN.
So, Socket need to check before close communication the rest of the transmit data in tx buffer.
that is why it check tx stuff in rx recv.