About Monkey 2 › Forums › Monkey 2 Development › I hessitate to ask but… UDP?
This topic contains 12 replies, has 4 voices, and was last updated by
Xaron
2 years, 5 months ago.
-
AuthorPosts
-
October 24, 2016 at 2:27 am #4602
I am at that point in my project and I was wondering. What the low-down is on UDP?
October 24, 2016 at 6:50 am #4606Is it client/server style?
October 24, 2016 at 6:32 pm #4617It is. Plus an action/twitch style game relying on low latency UDP.
I will use a client and authoritative server (server is in control). Ideally it would be great to have something in a framework that provides a server that can do packet handling (packet order and reliability), UDP hole punching and so on.
If memory serves Monkey 2 is using EFFNET? I might be able to use it if the UDP part is enabled. EFFNET does not provide a server or hole punching (as I recall) but both of these can be accomplished by building a server and using techniques to achieve UDP hole punching. It’s more work on my end but doable.
October 24, 2016 at 7:18 pm #4619If memory serves Monkey 2 is using EFFNET?
Nope, never heard of EFFNET.
Monkey2 currently only supports IP4/6 TCP sockets, which should be easy to make work with client/server UDP so I’ll have a go at that now.
October 24, 2016 at 8:31 pm #4621Right oh.
Thanks.
October 25, 2016 at 6:08 am #4624Ok, udp is now in.
I’ve added an echoserver_udp banana to give you some idea of how to use it.
I also modified the socket architecture a bit which may break existing code if anyone’s using it, but nothing major.
October 25, 2016 at 7:48 am #4625Awesome.. compiling it now.
I’ll give it a test. Thanks!
October 25, 2016 at 8:56 am #4626It might still be a bit dodgy – finding a few issues on Mac. Will keep hacking tomorrow.
October 25, 2016 at 10:02 pm #4642Ok, that should all be working pretty well now, have a look at the updated echoserver_udp banana.
October 26, 2016 at 6:25 am #4645OK will do. I had a go last night and echoserver demo seem to work, but I’ll test the latest commit here soon.
November 5, 2016 at 8:13 am #4780great stuff will have a look at that
November 5, 2016 at 10:44 am #4784I’m a bit behind on my developments but I will be getting to networking very soon. Just a FYI/Update.
November 18, 2016 at 3:27 pm #5208Is NAT hole punching already possible?
-
AuthorPosts
You must be logged in to reply to this topic.