Posts by Talisson Bento • 51 points
2 posts
-
1
votes1
answer108
viewsA: C code, url=inet_ntoa(*(struct in_addr *)ip->h_addr); I don’t understand what’s going on
And look, man! All right? but h_addr is not an in_addr struct (which has an unsigned long) Exactly, how gethostbyname() can return a hostent.h_addr_list containing addrs of the type in_addr or…
-
1
votes1
answer209
viewsA: Using threads in classes
And look at that! I will highlight a point in your code that must be causing the build error. delete[] THREAD; this delete is for deleting an array, see that THREAD is declared as std::thread…