Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Stream
+ Граф наследования:Stream:

Открытые члены

 __construct (string $address, array $options=[])
 
 connect ()
 
 gets ()
 
 read (int $length)
 
 write (string $string)
 
 setBlocking (bool $enable=true)
 
 getResource ()
 
 enableCrypto (bool $enable=true)
 
 timedOut ()
 
- Открытые члены унаследованные от Stream
 __construct ($stream, $mode='r')
 
 __toString ()
 
 close ()
 
 detach ()
 
 getSize ()
 
 tell ()
 
 eof ()
 
 isSeekable ()
 
 seek (int $offset, int $whence=SEEK_SET)
 
 rewind ()
 
 isWritable ()
 
 isReadable ()
 
 getContents ()
 
 getMetadata (?string $key=null)
 
 copyTo ($stream)
 

Защищенные данные

string $address
 
int $socketTimeout = 30
 
int $streamTimeout = 60
 
array $contextOptions = []
 
bool $async = false
 
int $lastTime = 0
 
- Защищенные данные унаследованные от Stream
 $resource
 

Подробное описание

См. определение в файле stream.php строка 14

Конструктор(ы)

◆ __construct()

__construct ( string $address,
array $options = [] )
Аргументы
string$address
array$options

См. определение в файле stream.php строка 27

Методы

◆ connect()

connect ( )

Connects asynchronously.

Возвращает
void

См. определение в файле stream.php строка 53

◆ enableCrypto()

enableCrypto ( bool $enable = true)

Enables SSL on an open socket.

Аргументы
bool$enable
Возвращает
bool|int

См. определение в файле stream.php строка 188

◆ getResource()

getResource ( )
Возвращает
null|resource

См. определение в файле stream.php строка 177

◆ gets()

gets ( )
Возвращает
false|string

См. определение в файле stream.php строка 94

◆ read()

read ( int $length)

Переопределяет метод предка Stream.

См. определение в файле stream.php строка 114

◆ setBlocking()

setBlocking ( bool $enable = true)

Sets blocking mode on a socket.

Аргументы
bool$enable
Возвращает
bool

См. определение в файле stream.php строка 169

◆ timedOut()

timedOut ( )

Checks if the socket was timed out.

Возвращает
bool

См. определение в файле stream.php строка 198

◆ write()

write ( string $string)

Переопределяет метод предка Stream.

См. определение в файле stream.php строка 134

Данные класса

◆ $address

string $address
protected

См. определение в файле stream.php строка 16

◆ $async

bool $async = false
protected

См. определение в файле stream.php строка 20

◆ $contextOptions

array $contextOptions = []
protected

См. определение в файле stream.php строка 19

◆ $lastTime

int $lastTime = 0
protected

См. определение в файле stream.php строка 21

◆ $socketTimeout

int $socketTimeout = 30
protected

См. определение в файле stream.php строка 17

◆ $streamTimeout

int $streamTimeout = 60
protected

См. определение в файле stream.php строка 18