A
antonioetayo
Heres the code:
http://www.pastebin.co.uk/7303
When I try to compile in debian using g++ I get this error:
network_module_server.cpp: In function `int main()':
network_module_server.cpp:54: error: invalid conversion from `int*' to
`
socklen_t*'
network_module_server.cpp:61: error: parse error before `,' token
I have no idea what the heck is going on. I'm following this tutorial
almost to the letter:
http://beej.us/guide/bgnet/output/html/syscalls.html
Check on the accept() section. And yeah, I know theres a lot possibly
unnecessary comments in the code and whatnot but thats my way of
keeping notes while I learn.
PS: If you know of a better tutorial/book on the subject, please
enlighten me.
http://www.pastebin.co.uk/7303
When I try to compile in debian using g++ I get this error:
network_module_server.cpp: In function `int main()':
network_module_server.cpp:54: error: invalid conversion from `int*' to
`
socklen_t*'
network_module_server.cpp:61: error: parse error before `,' token
I have no idea what the heck is going on. I'm following this tutorial
almost to the letter:
http://beej.us/guide/bgnet/output/html/syscalls.html
Check on the accept() section. And yeah, I know theres a lot possibly
unnecessary comments in the code and whatnot but thats my way of
keeping notes while I learn.
PS: If you know of a better tutorial/book on the subject, please
enlighten me.