TCP Client Server
Xpicolo

Hi,
Is there an addon for Network TCP sockets?
What you use?

Thanks

Chris Katko

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:

http://www.jenkinssoftware.com/

Edgar Reynaldo

Gah. Does no one pay attention anymore?

Allegro 5 comes with an ENet example, and my binaries come with enet dynamic and static libraries.

http://enet.bespin.org/

https://www.allegro.cc/forums/thread/617119

Specter Phoenix

Gah. Does no one pay attention anymore?

I'm not sure they ever did.

l j

I'm not sure they ever did.

The internet isn't helping, only makes it harder to pay attention to anything.

Chris Katko

I disagre---hang on, gotta check my twitter.

What were we talking about?

Edgar Reynaldo
Elias

Do you have screenshots of the network example?

Edgar Reynaldo

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"}611155

{"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"}611154

Xpicolo

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.

beoran

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.

Edgar Reynaldo

My bad, I assumed enet did TCP and UDP. Sorry.

Thread #617175. Printed from Allegro.cc