09.01.2013, 17:03
Well start with this first. Did you try to print the value tmp so for example try putting this right under the tmp variable.
printf("Text: %d",tmp);
That will let you see if the text is even being printed inside the CMD when you run your server.
printf("Text: %d",tmp);
That will let you see if the text is even being printed inside the CMD when you run your server.