[haXe] Red5/FMS and Haxe platform
Nicolas Cannasse
ncannasse at motion-twin.com
Fri Nov 3 15:04:35 CET 2006
> Hi Nicolas, thanks for the explanation :)
>
>>Now if you want to replace your haXe/Flash client by a haXe/Neko one,
>>ou will have to manually connect using a neko.net.Socket and manage the
>>RTMP protocol by-hand.
>
> You mean I would have to actually implement the RTMP protocol, right?
> Sounds like it's not a good option :P
I have an AMF and RTMP implementation as part of my server work.
But it would require more work to be able to transparently call methods
on Red5 server and receive answers. If some people are interested in
doing so I can send them the sources.
> >No, if you want to know what is the "natural application server" for
> >haXe, I would say that's a haXe Remoting one. You can setup easily an
> >haXe HTTP Remoting server (which can't make calls but only answer your
> >requests)
>
>
>
> What protocol does haXe HTTP remoting server use? Is it compatible with
> AMF0/AMF3?
haXe Remoting uses haXe Serialization. It's a custom serialization that
can be used on all haXe supported platforms. See
http://haxe.org/api/haxe/Serializer and
http://haxe.org/api/haxe/Unserializer classes. I'm planning to fully
document this protocol but the source is easy to read and has already
been ported to other languages/platforms as well.
> We are currently developing several projects using haXe Socket Remoting
> Servers, and when used together with haXe Remoting Proxy, it's very an
> incredible boost in terms of both productivity and quality of the
> resulting code.
>
>
> That sounds very interesting and at the same time confusing. Could you
> point me to resources (tuts/docs) about haXe Socket Remoting?
Right now, not so much docs available, and it's a bit difficult to setup
everything.
Have a look at haxe/std/neko/net/ServerLoop.hx which is a single-thread
multiuser server and at haxe/std/neko/net/RemotingBuffer.hx which can
store user data inside a buffer and call onData when a remoting request
is ready. Then you can send this data to
haxe.remoting.SocketConnection.processMessage that will execute the
request and send back the result.
Nicolas
More information about the Haxe
mailing list