Bitrix API

Stream extends Stream

Table of Contents

Methods

__construct()  : mixed
__toString()  : string
close()  : void
connect()  : void
Connects asynchronously.
copyTo()  : mixed
detach()  : mixed
enableCrypto()  : bool|int
Enables SSL on an open socket.
eof()  : bool
getAddress()  : string
Retuns the address to connect.
getContents()  : string
getMetadata()  : mixed
getResource()  : null|resource
gets()  : false|string
getSize()  : int|null
isReadable()  : bool
isSeekable()  : bool
isWritable()  : bool
read()  : string
rewind()  : void
seek()  : void
setBlocking()  : bool
Sets blocking mode on a socket.
tell()  : int
timedOut()  : bool
Checks if the socket was timed out.
write()  : int

Methods

__construct()

public __construct(string $address[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$address : string
$options : array<string|int, mixed> = []

__toString()

public __toString() : string
Tags
inheritdoc
Return values
string

close()

public close() : void
Tags
inheritdoc

connect()

Connects asynchronously.

public connect() : void

copyTo()

public copyTo(mixed $stream) : mixed
Parameters
$stream : mixed

detach()

public detach() : mixed
Tags
inheritdoc

enableCrypto()

Enables SSL on an open socket.

public enableCrypto([bool $enable = true ]) : bool|int
Parameters
$enable : bool = true
Return values
bool|int

eof()

public eof() : bool
Tags
inheritdoc
Return values
bool

getAddress()

Retuns the address to connect.

public getAddress() : string
Return values
string

getContents()

public getContents() : string
Tags
inheritdoc
Return values
string

getMetadata()

public getMetadata([string|null $key = null ]) : mixed
Parameters
$key : string|null = null
Tags
inheritdoc

getResource()

public getResource() : null|resource
Return values
null|resource

gets()

public gets() : false|string
Return values
false|string

getSize()

public getSize() : int|null
Tags
inheritdoc
Return values
int|null

isReadable()

public isReadable() : bool
Tags
inheritdoc
Return values
bool

isSeekable()

public isSeekable() : bool
Tags
inheritdoc
Return values
bool

isWritable()

public isWritable() : bool
Tags
inheritdoc
Return values
bool

read()

public read(int $length) : string
Parameters
$length : int
Tags
inheritdoc
Return values
string

rewind()

public rewind() : void
Tags
inheritdoc

seek()

public seek(int $offset[, int $whence = SEEK_SET ]) : void
Parameters
$offset : int
$whence : int = SEEK_SET
Tags
inheritdoc

setBlocking()

Sets blocking mode on a socket.

public setBlocking([bool $enable = true ]) : bool
Parameters
$enable : bool = true
Return values
bool

tell()

public tell() : int
Tags
inheritdoc
Return values
int

timedOut()

Checks if the socket was timed out.

public timedOut() : bool
Return values
bool

write()

public write(string $string) : int
Parameters
$string : string
Tags
inheritdoc
Return values
int

        
On this page

Search results