Giter Site home page Giter Site logo

Comments (4)

Aaronontheweb avatar Aaronontheweb commented on June 24, 2024

Hi Ashuto,

Yes it can! We have a working sample of a Udp socket server inside the "UdpReactorServer" sample project: https://github.com/Aaronontheweb/helios/tree/master/samples/Helios.Samples.UdpReactorServer

Every Helios socket server (reactor) or client (connection) consists of the following parts:

  1. A dedicated thread-pool for processing inbound and outbound requests, using C# socket best practices;
  2. A MessageEncoder and MessageDecoder for encoding and decoding messages on the network - by default we use a FrameLengthEncoder and FrameLengthDecoder, which appends a 4-byte header to beginning of the message describing how many contiguous bytes are included in this message.
  3. Event hooks for important network events such as received data, connections (yes,even for UDP - we track when data has been received from a new IP:PORT and fire the OnConnect event then), and network errors.

If you want to try out the UDP Reactor included in that example, I recommend also running our UdpRawSocket example in parallel which uses the same encoding / decoding that the server does: https://github.com/Aaronontheweb/helios/tree/master/samples/Helios.RawUdpSocket

from helios.

ashutoshraina avatar ashutoshraina commented on June 24, 2024

Just finished getting the samples to work together ๐Ÿ‘

from helios.

Aaronontheweb avatar Aaronontheweb commented on June 24, 2024

๐Ÿ‘

from helios.

Aaronontheweb avatar Aaronontheweb commented on June 24, 2024

Feel free to post any more questions here!

from helios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.