SocketClient

Constructor

@:value({ aIsWithLength : true, aReconnect : -1, aHost : "127.0.0.1" })new(aHost:String = "127.0.0.1", aPort:Int, aReconnect:Int = -1, aIsWithLength:Bool = true)

Methods

send(data:BytesOutput):Void

Inherited Variables

Defined by SocketClientBase

read onlyhost:String

@:value(-1)read onlyid:Int = -1

@:value(false)logInputData:Bool = false

@:value(false)logOutputData:Bool = false

read onlyonClose:Signal0

read onlyonData:Signal2<BytesInput, SocketClient>

read onlyonOpen:Signal0

read onlyonString:Signal2<String, SocketClient>

@:value(false)read onlyopened:Bool = false

read onlyport:Int

@:value(0)readLengthSize:UInt = 0

read onlyserver:Null<SocketServer>

Defined by Logable

read onlyerrorActive:Bool

read onlylogActive:Bool

read onlyonError:Signal2<String, Null<PosInfos>>

read onlyonLog:Signal2<String, Null<PosInfos>>

Inherited Methods

Defined by SocketClientBase

@:access(pony.net.SocketServer)init(server:SocketServer, id:Int):Void

logInputDataHandler(bi:BytesInput):Void

dynamicreadLength(bi:BytesInput):UInt

reconnect():Void

inlinesend2other(data:BytesOutput):Void

inlineset_logInputData(v:Bool):Bool

tryAgain():Void

Defined by Logable

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