Skip to main content

Zymba Documentation

IO.SocketStream

Text
object @IO.SocketStream(@IO.Stream) {
disableEncryption(): $this {}
enableEncryption(): $this {}
getLocalEndpoint(): string {}
getRemoteEndpoint(): string {}
peek(int $length): string {}
receive(int $length): object {}
receiveOutOfBand(int $length): object {}
send(string $string, string $endpoint): int {}
sendOutOfBand(string $string, string $endpoint): int {}
shutdownReceive(): $this {}
shutdownSend(): $this {}
}

Abstract IO socket stream prototype.

Prototype

IO.Stream

Methods

CODE
$this.disableEncryption(): this
Returns
TypeValue
$this
CODE
$this.enableEncryption(): this
Returns
TypeValue
$this
CODE
$this.getLocalEndpoint(): string
Returns
TypeValue
string
CODE
$this.getRemoteEndpoint(): string
Returns
TypeValue
string
CODE
$this.peek(int $length): string
Parameters
NameTypeValueDefault
lengthint0
Returns
TypeValue
string
CODE
$this.receive(int $length): object
Parameters
NameTypeValueDefault
lengthint0
Returns
TypeValue
object[string, endpoint]
null
CODE
$this.receiveOutOfBand(int $length): object
Parameters
NameTypeValueDefault
lengthint0
Returns
TypeValue
object[string, endpoint]
null
CODE
$this.send(string $string, string $endpoint): int
Parameters
NameTypeValueDefault
stringstring""
endpointstring""
Returns
TypeValue
int
CODE
$this.sendOutOfBand(string $string, string $endpoint): int
Parameters
NameTypeValueDefault
stringstring""
endpointstring""
Returns
TypeValue
int
CODE
$this.shutdownReceive(): this
Returns
TypeValue
$this
CODE
$this.shutdownSend(): this
Returns
TypeValue
$this