TCP socket connect - return값에 대한 문의
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: TCP socket connect - return값에 대한 문의
by hjjeon0608 ·
안녕하세요.
먼저 SOCKERR_SOCKMODE 발생 이유는 connect 함수는 TCP 모드일 때만 실행 되어야 하는데 해당socket이 TCP mode가 아닌UDP로 open 되었거나 IPRAW 또는 MACRAW로 open 되었을 경우 이 에러가 발생합니다.
두번째 SOCKERR_PORTZERO발생 이유는 destination port를 parameter로 입력하여 connect함수를 호출하는데 이 port번호가 0일경우 발생합니다. 자신의 port번호가 아니라 server의 port번호입니다.
감사합니다.