W
Wizirdi
Guest
SOLVED
Using the following code...
So basically... network_connect is suppose to return less than zero is no server is running. However, it returns 0 no matter WHAT. Even if there's no server running. I even changed the ip to "asjdhasd" and it still said it connected to that. Lol?
If I switch the socket type to tcp, and run the client with a Windows build it won't connect if the server is running, and connect fine with the server is running.
However, HTML5 will just "connect" no matter what.
What's weird is, when the server is running, the server is seeing it connect... But can not send data back to the client.
Any idea why? I did submit a bug report. But I was wondering if someone had a fix.
Using the following code...
Code:
client = network_create_socket(network_socket_ws);
server = network_connect(client, "192.168.0.1", 64198 );
If I switch the socket type to tcp, and run the client with a Windows build it won't connect if the server is running, and connect fine with the server is running.
However, HTML5 will just "connect" no matter what.
What's weird is, when the server is running, the server is seeing it connect... But can not send data back to the client.
Any idea why? I did submit a bug report. But I was wondering if someone had a fix.
Last edited by a moderator: