January 28th, 2013, 09:21 AM
This is my finished code, I added timeout also but seems to hang connected if no response back, otherwise works:
January 28th, 2013, 09:13 AM
I did it like this:
int i = 0;
January 28th, 2013, 06:20 AM
By "that works" I mean using "printf("%s", line_buffer)" that prints out every line out from my text.
January 28th, 2013, 04:48 AM
An how should I safely start every thread with different lines read from my file? Because if I just do "printf("%s", line_buffer)" that works.
January 28th, 2013, 04:06 AM
This code ruined all my day. Basically I have a list of 50 webservers I administrate, I want to check them if up/alive (isAlive() function), I parse my webservers.txt file with the 50 ips/hostnames...