Author Topic: How do I use Haxe sockets in a cross-platform way without blocking?  (Read 38 times)

RyanCaleb

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Hi,

Most guides surrounding the use of sockets with the Haxe toolkit rely on the use of threads, which are platform-specific. This is because sockets block by default, which makes them unsuitable for many types of applications, including games.

I am aware that there is a non-blocking mode, but I can't get it to function without throwing an exception.

How do I use sockets in a cross-platform way without relying on threading?


Please help.
Thanks!

I didn't find the right solution from the Internet.

References:
https://stackoverflow.com/questions/39292522/how-do-i-use-haxe-sockets-in-a-cross-platform-way-without-blocking

Pharmaceutical Video