View Single Post
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 11-30-2006 , 11:59   Re: Sockets and webservers
Reply With Quote #16

Quote:
Originally Posted by Simon Logic View Post
I don't get how one function can return true or timeout. Or will timeout be greater than 0, and true is less then 0?
As far as i know, TRUE is a boolean value and its integer value is -1, so you will basicly know if the value is greater then 0 you have a timeout, otherwise its true.

Quote:
Originally Posted by Simon Logic View Post
Your source code does not cover/use this feature.
It's intended to keep things simple

Quote:
Originally Posted by Simon Logic View Post
Also i don't understand wether socket_change() wait for timeout interval (is it a sync function?) until it gets some data or it's non sync function and you must call it in loop until it returns true or timeout interval which was passed as a second argument (_timeout)?
Im not sure myself, i'd better leave it for someone of the amx mod x developement team to fill in that one
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow