I hessitate to ask but… UDP?

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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #4602

    Richard Betson
    Participant

    I am at that point in my project and I was wondering. What the low-down is on UDP?

    #4606

    Mark Sibly
    Keymaster

    Is it client/server style?

    #4617

    Richard Betson
    Participant

    It 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.

    #4619

    Mark Sibly
    Keymaster

    If 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.

    #4621

    Richard Betson
    Participant

    Right oh. 🙂 Thanks.

    #4624

    Mark Sibly
    Keymaster

    Ok, 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.

    #4625

    Richard Betson
    Participant

    Awesome.. compiling it now. 🙂 I’ll give it a test. Thanks!

    #4626

    Mark Sibly
    Keymaster

    It might still be a bit dodgy – finding a few issues on Mac. Will keep hacking tomorrow.

    #4642

    Mark Sibly
    Keymaster

    Ok, that should all be working pretty well now, have a look at the updated echoserver_udp banana.

    #4645

    Richard Betson
    Participant

    OK will do. I had a go last night and echoserver demo seem to work, but I’ll test the latest commit here soon.

    #4780

    EdzUp
    Participant

    great stuff will have a look at that 🙂

    #4784

    Richard Betson
    Participant

    I’m a bit behind on my developments but I will be getting to networking very soon. Just a FYI/Update.

    #5208

    Xaron
    Participant

    Is NAT hole punching already possible? 🙂

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.