#What does network_connect() return?
4 messages · Page 1 of 1 (latest)
I did a few tests and I can only seem to get a return value of 0 if the connection is successful, I'm just wondering if there are any cases where it might be bigger than 0?
4 messages · Page 1 of 1 (latest)
Could someone tell me what the significance of the return value of network_connect() is? As I understand it, it either returns a real number or a network socket ID. If the connection fails, it returns something less than 0, but what about if it succeeds? Does it return the ID of the server it connects to?
I did a few tests and I can only seem to get a return value of 0 if the connection is successful, I'm just wondering if there are any cases where it might be bigger than 0?