New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Networking #41

rynti opened this Issue Aug 5, 2012 · 1 comment


None yet
1 participant

rynti commented Aug 5, 2012

I just realized that TCP networking isn't that easy as of now using haxe/nme, since there are two main implementations:

  • for C++
  • for Flash

However, goes the plain synchronous way, so you'd have to call .connect and wait until it's done connecting. It blocks the current thread.

On the other hand, uses the more beautiful event-driven way, whereas you call connect and can continue on with other code, and as soon as it's done connecting it will call a specified callback.

I'm planning on creating one simple event-driven Solution that works on both platforms with the same codebase. This may be done using Multithreading on the C++ target, thus being able to do connect etc. on secondary threads and avoid blocking the main thread.

@ghost ghost assigned rynti Aug 10, 2012


This comment has been minimized.


rynti commented Aug 16, 2012

Closed by af0a346.

@rynti rynti closed this Aug 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment