PDA

View Full Version : Network UDP sockets



brunofls
09-23-2012, 03:16 PM
Hello, I would like to know if there is a way to make use of UDP sockets instead of TCP in Proton SDK. Thanks

Seth
09-23-2012, 10:32 PM
All platforms (except the Flash target which will be ready soon) do support full bsd sockets which does mean UDP is also available.

For my multiplayer stuff, I use enet (http://enet.bespin.org/) which is based on UDP. In fact, I include all the enet files in /shared/Network/enet, but there is no working example, although the enet site does have example code (http://enet.bespin.org/Tutorial.html), it's pretty easy to use.

brunofls
09-23-2012, 11:16 PM
Great!
Gonna try it, thanks :D

Zaxuhe
09-27-2012, 12:13 AM
just a question... is enet supported in all platforms? (except flash)

Seth
09-27-2012, 12:35 AM
just a question... is enet supported in all platforms? (except flash)

As far as I know yes. I've tested it with android/ios/webos/win/linux so far.