Hi,
Is there an addon for Network TCP sockets?
What you use?
Thanks
There is no official one. The reason is, most people with roll their own (because it's so intruisive/coupled to your specific game structures), or, use one of the many thoroughly vetted third-party libraries already out there:
https://www.codeofhonor.com/blog/choosing-a-game-network-lib
https://gamedev.stackexchange.com/questions/394/network-layer-libraries
Here's a very popular one:
Gah. Does no one pay attention anymore?
Allegro 5 comes with an ENet example, and my binaries come with enet dynamic and static libraries.
Gah. Does no one pay attention anymore?
I'm not sure they ever did.
I'm not sure they ever did.
The internet isn't helping, only makes it harder to pay attention to anything.
I disagre---hang on, gotta check my twitter.
What were we talking about?
Herp.
Derp.
<spoiler>
HerpDerp (Nested spoilers don't work)
</spoiler>
https://github.com/liballeg/allegro5/blob/master/examples/enet_common.h
https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c
https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c
Do you have screenshots of the network example?
What's this? NSND?
Lulz, all it does is draw a circle and let you move around. There is a binary of ex_enet_client and server.exe in my distro. Try it yourself. It's not much fun playing on your own local network.
Here's a better screenie :
{"name":"611155","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/d\/5db22c862d1491b7dd138bdb51e5ed56.png","w":1572,"h":797,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/d\/5db22c862d1491b7dd138bdb51e5ed56"}
{"name":"611154","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/5730524b3644dd3e23d46b0b01e0ee52.png","w":642,"h":513,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/5730524b3644dd3e23d46b0b01e0ee52"}
Gah. Does no one pay attention anymore?
I ask for TCP, right? Enet is UDP.
That is, "The internet isn't helping, only makes it harder to pay attention to anything".
Thanks anyway for advices.
For TCP, dyad is really easy to use: https://github.com/rxi/dyad/blob/master/README.md Just call dyad_update from time to time in your game loop.
My bad, I assumed enet did TCP and UDP. Sorry.