Socket.c bugs
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: Socket.c bugs
by kammutierspule ·
I was looking for BSD recv function and It looks that your implementation is correct:
linux.die.net/man/2/recv
“The receive calls normally return any data available, up to the requested amount, rather than waiting for receipt of the full amount requested.”
So the issue is in the wiznet socket.h documentation:
[quote]
It waits for data as much as the application wants to receive.
…
In block io mode, it doesn’t return until data reception is completed - data is filled as len in socket buffer.[/quote]
So, it no correct to say “data is filled as len in socket buffer”
RE: Socket.c bugs
by alexpescaru ·
And I believe there is one more thing to correct in socket.c, function sendto().
Bellow, I believe should be taddr, not addr.
Am I right?
//M20140501 : For avoiding fatal error on memory align mismatched
//if(((uint32_t)addr) == 0) return SOCKERR_IPINVALID;
{
uint32_t taddr;
taddr = ((uint32_t)addr[0]) & 0x000000FF;
taddr = (taddr << 8) + ((uint32_t)addr[1] & 0x000000FF);
taddr = (taddr << 8) + ((uint32_t)addr[2] & 0x000000FF);
taddr = (taddr << 8) + ((uint32_t)addr[3] & 0x000000FF);
}
//
if(((uint32_t)[color=#FF0000]addr[/color]) == 0) return SOCKERR_IPINVALID;
RE: Socket.c bugs
by kammutierspule ·
Wouldn’t it be better if this ioLibrary_BSD was in a public repository (github wiznet account?) so we all can use the appropriated tools and platform for bug reporting, version control… etc?!
RE: Socket.c bugs
by fherbert ·
I’ve just checked the current version (1.0.3) of code for socket.c at [url]https://github.com/Wiznet/W5500_EVB[/url] or [url]http://wizwiki.net/wiki/doku.php?id=products:w5500:driver[/url] and the fixes don’t appear to have made it to this driver yet. When will this driver be updated at github?
RE: Socket.c bugs
by hjjeon0608 ·
Hi, fherbert
We are modifying code about your point and other points.
So, we will update next version ASAP!
Plz, wait a while kindly~:D