W7500 socket buffer clear 문의
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
MCU & Boards
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: W7500 socket buffer clear 문의
by justinkim ·
일단 먼저 현상이 잘 이해가 되지않습니다.
TCP connection은 1:1연결 기반 통신입니다.
모든 client에게 응답하는게 말이 되지않습니다.
이상 현상이 발생하는 상황에서 패킷을 wire shark 프로그램으로 캡쳐하여 확인해보시기 바랍니다.
W7500의 socket buffer는 recv하면 포인터가 업데이트 되도록 되어있습니다.
socket 버퍼의 free size는 이미 읽은 메모리 주소의 끝지점과 읽기전 메모리 주소의 끝지점의 차이 값을 의미합니다. 따라서 revc를 하시면 읽은 메모리 주소의 끝지점이 읽기전 메모리 주소의 끝지점과 같아지며 freesize가 지정 버퍼사이즈로 늘어납니다. 이는 버퍼를 비운다는 의미와 같습니다.