Surgeon_
Symbian Curator
Hello,
I am having issues with setting up a raw connection, with non-blocking sockets, using Game Maker Studio's built-in functions. Now, this is not a programming question, I know how to program the whole thing, but the issue is the following: The game usually has trouble connecting to a raw server when ran on my computer.
I tried it with a friend over Hamachi, and the game connected without issues and we were able to send data back and forth (in general it worked every time). However, only when the server was hosted on my computer, and when I tried to be the client, the connection would always time out (I'm giving it plenty of time, five to ten seconds).
When I try to host the server on my computer and connect from the same computer, sometimes it works but more often than not it times out again.
I tried it with many different ports, and the results were the same.
However, if I change all functions to regular, non-raw ones, it works. Also, if I change the sockets to blocking ones, it also works.
If it matters, both my friend and me are running Windows 7. The game is compiled with Game Maker: Studio Professional, Early Access v 1.99.493.
Do you know what could be causing this? Is there something about raw connections or non-blocking sockets that I'm missing? (But then again, why does it sometimes work flawlessly?)
Thanks for reading,
-Surgeon_
I am having issues with setting up a raw connection, with non-blocking sockets, using Game Maker Studio's built-in functions. Now, this is not a programming question, I know how to program the whole thing, but the issue is the following: The game usually has trouble connecting to a raw server when ran on my computer.
I tried it with a friend over Hamachi, and the game connected without issues and we were able to send data back and forth (in general it worked every time). However, only when the server was hosted on my computer, and when I tried to be the client, the connection would always time out (I'm giving it plenty of time, five to ten seconds).
When I try to host the server on my computer and connect from the same computer, sometimes it works but more often than not it times out again.
I tried it with many different ports, and the results were the same.
However, if I change all functions to regular, non-raw ones, it works. Also, if I change the sockets to blocking ones, it also works.
If it matters, both my friend and me are running Windows 7. The game is compiled with Game Maker: Studio Professional, Early Access v 1.99.493.
Do you know what could be causing this? Is there something about raw connections or non-blocking sockets that I'm missing? (But then again, why does it sometimes work flawlessly?)
Thanks for reading,
-Surgeon_