Class %IO.ServerSocket

class %IO.ServerSocket extends %IO.DeviceStream, %IO.IParts.ServerSocketIO, %IO.SocketCommon

Methods

• method Close(Output pSC As %Status) returns %Boolean
• method Disconnect(Output pSC As %Status) returns nothing.
• method Listen(ByRef pTimeout As %Numeric = -1, Output pSC As %Status) returns %Boolean
• method ListenJob(ByRef pTimeout As %Numeric = -1, pOnConnectedClass As %String, pJobArgs As %String, pSocketClass As %String = "%IO.ServerSocket", pMaxJobs As %Integer = -1, pForeground As %Boolean = 0, Output pSC As %Status) returns %Integer
Until pTimeout, listen for incoming connections and spawn a job for each one, up to pMaxJobs. If pMaxJobs threshold has already been reached, wait for an existing connected job to quit and then spawn a job for the new connection. When the timeout expires, this method will return but any spawned jobs will continue running until they terminate on their own.
• method Open(pPort As %String = "", ByRef pTimeout As %Numeric = -1, Output pSC As %Status) returns %Boolean
• classmethod connectionJob(pSubscript As %String, pOnConnectedClass As %String, pSocketClass As %String, pSocketProps As %String, pJobArgs As %String) returns %Status
• method jobAttachProps(pSocketProps As %String, pDevice As %String) returns nothing.