Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
phpseclib
Net
SSH1
setTimeout
phpseclib\Net\SSH1::setTimeout PHP Method
SSH1 Class Documentation
Show file
Open project: phpseclib/phpseclib
setTimeout()
public
method
$ssh->exec('ping 127.0.0.1'); on a Linux host will never return and will run indefinitely. setTimeout() makes it so it'll timeout. Setting $timeout to false or 0 will mean there is no timeout.
public
setTimeout
(
mixed
$timeout
)
$timeout
mixed
function setTimeout($timeout) { $this->timeout = $this->curTimeout = $timeout; }
SSH1
__construct
__destruct
_append_log
_connect
_crc
_define_array
_disconnect
_format_log
_format_log_helper
_get_binary_packet
_initShell
_rsa_crypt
_send_binary_packet
disconnect
exec
getHostKeyPublicExponent
getHostKeyPublicModulus
getLog
getServerIdentification
getServerKeyPublicExponent
getServerKeyPublicModulus
getSupportedAuthentications
getSupportedCiphers
interactiveRead
interactiveWrite
login
read
setTimeout
write