Book Image

haXe 2 Beginner's Guide

5 (1)
Book Image

haXe 2 Beginner's Guide

5 (1)

Overview of this book

Table of Contents (21 chapters)
haxe 2
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

haXe remoting


The haXe remoting system can be used with all haXe's targets, but the functionalities which you will be able to use won't be the same as they vary/alter according to the type of platform used.

In addition, haXe remoting can be used over several protocols or transport layers. Again, the ability to use some of them will depend on the platform you are targeting.

Supported protocols and layers

As we discussed earlier, haXe remoting can be used on top of several protocols and transport layers. Functionalities and supported protocols depend on the target platform.

Here are the main supported protocols, by which class they are implemented, and an example of what they can be used for.

Over HTTP

It is possible to use haXe remoting over HTTP. This allows a client to query a server over the HTTP transport and has the advantage of being possible from most platforms.

It is possible to do so in both asynchronous and synchronous modes. In the first case, one will use the haxe.remoting.HttpAsyncConnection...