Available on all platforms
SocketServer
@:value({ maxSize : 1024, isWithLength : true })new(port:Int, isWithLength:Bool = true, maxSize:Int = 1024)
Available on cs, neko, nodejs
inlinesendString(data:String):Void
@:value([])read onlyclients:Array<SocketClient> = []
@:value(false)isAbleToSend:Bool = false
@:value(true)@:allow(pony.net.SocketClientBase)isWithLength:Bool = true
read onlyonClose:Signal0
read onlyonConnect:Signal1<SocketClient>
read onlyonData:Signal2<BytesInput, SocketClient>
read onlyonDisconnect:Signal1<SocketClient>
read onlyonOpen:Signal0
read onlyonString:Signal2<String, SocketClient>
read onlyopened:Bool
read onlyerrorActive:Bool
read onlylogActive:Bool
read onlyonError:Signal2<String, Null<PosInfos>>
read onlyonLog:Signal2<String, Null<PosInfos>>
send(data:BytesOutput):Void
Sends a data to all the clients.
send2other(data:BytesOutput, exception:SocketClient):Void
Sends a data to all the clients except chosen one.
inlinebench(?name:String, f:() ‑> Void, ?p:Null<PosInfos>):Void
inlinebenchAsync(?name:String, f:() ‑> Void ‑> Void, ?p:Null<PosInfos>):Void
inlinebenchComplete(name:String, ?p:Null<PosInfos>):Void
inlinebenchStart(name:String, ?p:Null<PosInfos>):Void
inlineerror(s:String, ?p:Null<PosInfos>):Void
inlineerrorf(fn:() ‑> String, ?p:Null<PosInfos>):Void
inlinelistenError(l:ILogable, ?id:String):Void
inlinelistenErrorAndLog(l:ILogable, ?id:String):Void
inlinelistenLog(l:ILogable, ?id:String):Void
inlinelog(s:String, ?p:Null<PosInfos>):Void
inlinelogf(fn:() ‑> String, ?p:Null<PosInfos>):Void
inlinestopTraceAll():Void
inlinestopTraceErrors():Void
inlinestopTraceLogs():Void
inlinetraceAll():Void
@:value({ date : false, time : true })inlinetraceErrors(time:Bool = true, date:Bool = false):Void
@:value({ date : false, time : true })inlinetraceLogs(time:Bool = true, date:Bool = false):Void