[WIP] UDP plugin for C2

0 favourites
  • 6 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • UDP is a connectionless protocol for datagram-oriented applications. Plugin works only with node-webkit export.

    I spent some free time working on this plugin and finally got some decent results. Here are some screenshots of the UDP plugin in action.

    <img src="http://i.imgur.com/wBMrZNt.jpg" border="0" />

    <img src="http://i.imgur.com/yWQFDck.jpg" border="0" />

    ::Current functionality::

    Conditions:

    "On listening","Emitted when a socket starts listening for datagrams.

    "On Message","Emitted when a new datagram is available on a

    "On Close","Emitted when a socket is closed with close().","OnClose");

    "On Error","Emitted when an error occurs.","OnError");

    Actions:

    "Bind","For UDP sockets, listen for datagrams on a named port and optional address. If address is not specified, the OS will try to listen on all addresses."

    "Send", "Send UDP packet"

    "Close", "Close the underlying socket and stop listening for data on it."

    Exppressions:

    "Address", "Returns socket address"

    "Port", "Returns socket port"

    "Family", "Returns socket family"

    "Message", "Returns recieved message"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Interesing! i heard UDP is designed for real-time multiplayer, isn't it??

  • Bunch of internet applications use UDP; DNS, real-time video and audio streaming protocols, accounting, database systems, etc.

    It's used for multiplayer also, but because of it's possible data loss, sometimes UDP is not suitable for all multiplayer cases.

  • This looks cool, but unfortunately the main problem with UDP is a lot of home and business router setups, or crappy middleware at ISPs, simply drop UDP packets, and sometimes only one way. This can make it pretty tough to get full duplex between any two systems on the internet. NAT punch-through is pretty much an essential feature for this type of thing, and can require middle-man servers.

  • Great info, Ashley, i'll look into NAT punch-through.

    This is just an experiment, and a fun way for me to play with Node API and C2 SDK.

    Nevertheless, it's a fun playing with C2 and UDP, and I think it's great that C2 is such a well written piece of software that allows experiments like this.

  • This is great. I've just read a bunch of articles on UDP, NAP punch-through, etc... Never had a single problem with UDP in multiplayer games.

    And then this:

    <img src="http://i.imgur.com/gcuOL82.jpg" border="0">

    :D

    Great!

    On the side note; has anybody had experience with this library:

    github.com/pereckerdal/eminet

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)