Softanza
StartFrançais
Softanza
The library documents itself · Concurrency & distribution

stzTcpServer

12 own methods · 0 forms written with extensions, listed under their method · Also inherits from stzNetwork (8)

the source: base/network/stzTcpServer.ring(opens in a new tab) · All classes · The area reference: Concurrency & distribution

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

No method of this class is run on this page: the class reaches files, the network, processes, the clock, chance or sound, and an example run here would only be an example of its effects. Each method carries the explanation the library gives of itself.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Listen
stzNetwork.init takes no args; nothing to wire up here.no extension
AcceptOne
Blocks until a client connects; returns the wrapped stzTcpClient (or NULL on listener error). Caller is responsible for closing the client when done.no extension
AcceptOneWithin
AcceptOne() blocks for ever, so a caller whose point is "nothing should have connected" has no way to say so -- it hangs instead of answering. A timeout reports itself as the error "accept timed out", distinct from a real accept failure -- a null handle still arrives in Haro as a TcpClient value, so the error string is the only thing that can be tested.no extension
AcceptTimedOut
TRUE when the last AcceptOneWithin() simply saw nothing in time, as opposed to failing.no extension
StopListening
(no comment in the source: the name reads as a sentence) stop listeningalso written: Closeno extension
OnClientConnect
(no comment in the source: the name reads as a sentence) on client connectno extension
OnClientDisconnect
(no comment in the source: the name reads as a sentence) on client disconnectno extension
OnClientMessage
(no comment in the source: the name reads as a sentence) on client messageno extension
OnError
(no comment in the source: the name reads as a sentence) on errorno extension
IsListening
(no comment in the source: the name reads as a sentence) is listeningno extension
NumberOfClients
(no comment in the source: the name reads as a sentence) number of clientsno extension