remoting.NekoSocketConnection is used to connect a client Neko application to a Neko
socket server Table 15-8 .
Table 15-7
SocketConnection
Creational Method Description
socketConnect(s:Socket) Creates a SocketConnection object when the client is Flash
or JavaScript. The argument is a Socket object: an instance of
flash.net.XMLSocket for Flash 9, flash.XMLSocket for
Flash 8, or js.XMLSocket for JavaScript.
Table 15-8
NekoSocketConnection
Creational Methods Description
socketConnect(s:neko.net
.Socket, ?r:neko.net
.RemotingServer )
Creates a connection to a Neko socket server from a Neko
application. The first argument is Socket used for the
communication. The second optional argument is used when
an incoming request is triggered by the server.
Chapter 15: Putting It All Together with haXe Remoting
437
A Neko - to - Neko socket connection can be useful for many purposes such as synchronizing the database
contents of different servers or exchanging files. Remember that Neko is not only used on the server but
can also work on a client PC as a standalone application; refer to Chapters 17 to 19 to read more about
the subject.
Pages:
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820