fsockeopen - knowing when timeout is triggered
fsockeopen returns a SOCKET_ETIMEDOUT integer when the connection time开发者_运维问答out is reached.
If we put a wrong host or a wrong port, do we get a timeout error as well?
(sorry, I'm on production server, and I need to know this by theory).
Thanks, MEM
If we put a wrong host, we got another error. If we put a wrong port, we do get a timeout error as well.
精彩评论