Skip to main content

%IO.Socket

Class %IO.Socket Extends (%IO.DeviceStream, %IO.IParts.SocketIO, %IO.SocketCommon) [ Inheritance = right, System = 2 ]

Properties

Host

Property Host As %String(MAXLEN = 500);

Methods

Open

Method Open(pHost As %String = "", pPort As %String = "", ByRef pTimeout As %Numeric = -1, Output pSC As %Status) As %Boolean

Establish a TCP connection to the given host computer on the given port number, if possible within pTimeout.

Close

Method Close(Output pSC As %Status, pIntentional As %Boolean = 1, pSCReason As %Status = {$$$OK}) As %Boolean

Disconnect and close the current connection

IsOpenGet

Method IsOpenGet() As %Boolean [ Internal ]