Open realjiangms opened 11 years ago
Thanks for spotting this...
Correct usage should be
struct sockaddr_in si_that = { 0 };
socklen_t si_len = sizeof(si_that);
ssize_t size = recvfrom (fd, buffer, PING_MSG_SIZE, 0, &si_that, &si_len);
So quick response! I even haven't finished my post!!! Amazing ^_^
OK, I've fixed this and pushed new code; there were also some bool/Bool errors (this changed in CZMQ).
Thank you! Will the page http://zguide.zeromq.org/page:all also be updated? Someone like me may copy the code directly from it
Ok, I'll update it later today.
Thanks! On Apr 30, 2013 3:59 PM, "realjiangms" notifications@github.com wrote:
Thank you! Will the page http://zguide.zeromq.org/page:all also be updated? Someone like me may copy the code directly from it
— Reply to this email directly or view it on GitHubhttps://github.com/imatix/zguide/issues/334#issuecomment-17228663 .
In the sample:
udpping1: UDP discovery, model 1 in C
Following seems not correct usage:Valgrind will report
This is quite misleading, as recvfrom man page says: