W3cubDocs

/Haxe Flash

Socket

package flash.net

extends EventDispatcher

implements IDataInput, IDataOutput

extended by SecureSocket

Available on flash

Constructor

new(?host:String, port:Int = 0)

Variables

read onlybytesAvailable:UInt

read onlybytesPending:UInt

read onlyconnected:Bool

endian:Endian

objectEncoding:UInt

timeout:UInt

Methods

close():Void

connect(host:String, port:Int):Void

flush():Void

readBoolean():Bool

readByte():Int

readBytes(bytes:ByteArray, offset:UInt = 0, length:UInt = 0):Void

readDouble():Float

readFloat():Float

readInt():Int

readMultiByte(length:UInt, charSet:String):String

readObject():Dynamic

readShort():Int

readUTF():String

readUTFBytes(length:UInt):String

readUnsignedByte():UInt

readUnsignedInt():UInt

readUnsignedShort():UInt

writeBoolean(value:Bool):Void

writeByte(value:Int):Void

writeBytes(bytes:ByteArray, offset:UInt = 0, length:UInt = 0):Void

writeDouble(value:Float):Void

writeFloat(value:Float):Void

writeInt(value:Int):Void

writeMultiByte(value:String, charSet:String):Void

writeObject(object:Dynamic):Void

writeShort(value:Int):Void

writeUTF(value:String):Void

writeUTFBytes(value:String):Void

writeUnsignedInt(value:UInt):Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/net/Socket.html