HNHacker News
TopNewBestAskShowJobs

jburgueno

13 karma · joined December 24, 2012

juanburgueno.me
submissionscomments
jburgueno··on Show HN: Minecraft clone in 2500 lines of C - even supports multiplayer online
Thanks for the explanation!
jburgueno··on Show HN: Minecraft clone in 2500 lines of C - even supports multiplayer online
But the initialization of the variable is right after the memset:

    address.sin_family = AF_INET;
    address.sin_addr.s_addr = ((struct in_addr *)(host->h_addr_list[0]))->s_addr;
    address.sin_port = htons(port);
Why is it useful the put 0 before setting those values?
jburgueno··on Show HN: Minecraft clone in 2500 lines of C - even supports multiplayer online
client.c: 145

struct sockaddr_in address; ... memset(&address, 0, sizeof(address));

Can someone explain me why you need to set memory of sockaddr_in to 0 ? (Even if &address haven't been touched).

jburgueno··on Credit Card Processing is a Hard Business
Used the report error to google option to, so they can fix it.
jburgueno··on Show HN: My NBA + Twitter mashup
Really good idea! but the best is that the UI looks and feels really great. Great job.
jburgueno··on The Bw-Tree: A B-tree for New Hardware
20x times faster than BerkeleyDB is quite impresive. Would love to see a implementation of this.
jburgueno··on Playing with Go1.1beta2, it's much faster
36% is awesome! And it's proves that Go still got lot of space for growing.
jburgueno··on Show HN: Jott – Command-line static blog generator for Node
Any demo website out there? Seems to be a great project.