extern class flash.net.XMLSocketextends EventDispatcherAvailable in flashXMLSockets are sockets that stream complete XML documents. Documents are auto-terminated with the null-byte '\0' character. Flash needs the '\0' character to know when to send the document; this is sometimes referred to as its "end-of-line" character. Each document sent to an XMLSocket calls a DataEvent. XMLSockets must connect to ports greater than or equal to 1024, and Flash security policy must allow remote connections to this server. (this requires the delivery of a security policy XML file.) var connected(default,null) : Bool var timeout : Int function new( ?host : String, ?port : Int ) : Void function close() : Void function connect( host : String, port : Int ) : Void function send( object : Dynamic ) : Void
version #13045, modified 2012-04-12 22:26:22 by api
0 comment