haXe API Documentation
Back | Index
class neko.net.ThreadServer<Client, Message>
Available in neko
var connectLag : Float
var errorOutput : haxe.io.Output
var initialBufferSize : Int
var listen : Int
var maxBufferSize : Int
var maxSockPerThread : Int
var messageHeaderSize : Int
var nthreads : Int
var updateTime : Float
function new() : Void
function addSocket(s : Socket) : Void
dynamic function afterEvent() : Void
dynamic function clientConnected(s : Socket) : Client
dynamic function clientDisconnected(c : Client) : Void
dynamic function clientMessage(c : Client, msg : Message) : Void
dynamic function onError(e : Dynamic, stack : Array<haxe.StackItem>) : Void
dynamic function readClientMessage(c : Client, buf : haxe.io.Bytes, pos : Int, len : Int) : { msg : Message, bytes : Int}
function run(host : String, port : Int) : Void
function sendData(s : Socket, data : String) : Void
function stopClient(s : Socket) : Void
dynamic function update() : Void
function work(f : Void -> Void) : Void
Back | Index