ConnectContext
in package
FinalYes
Table of Contents
Properties
- $bindTo : string|null
- $connectTimeout : float
- $tcpNoDelay : bool
- $tlsContext : ClientTlsContext|null
- $typeRestriction : int|null
Methods
- getBindTo() : string|null
- getConnectTimeout() : float
- getDnsTypeRestriction() : int|null
- getTlsContext() : ClientTlsContext|null
- hasTcpNoDelay() : bool
- toStreamContextArray() : array<string|int, mixed>
- withBindTo() : self
- withConnectTimeout() : self
- withDnsTypeRestriction() : self
- withoutBindTo() : self
- withoutDnsTypeRestriction() : self
- withoutTcpNoDelay() : self
- withoutTlsContext() : self
- withTcpNoDelay() : self
- withTlsContext() : self
Properties
$bindTo
private
string|null
$bindTo
= null
$connectTimeout
private
float
$connectTimeout
= 10
$tcpNoDelay
private
bool
$tcpNoDelay
= false
$tlsContext
private
ClientTlsContext|null
$tlsContext
= null
$typeRestriction
private
int|null
$typeRestriction
= null
Methods
getBindTo()
public
getBindTo() : string|null
Return values
string|nullgetConnectTimeout()
public
getConnectTimeout() : float
Return values
floatgetDnsTypeRestriction()
public
getDnsTypeRestriction() : int|null
Return values
int|nullgetTlsContext()
public
getTlsContext() : ClientTlsContext|null
Return values
ClientTlsContext|nullhasTcpNoDelay()
public
hasTcpNoDelay() : bool
Return values
booltoStreamContextArray()
public
toStreamContextArray() : array<string|int, mixed>
Return values
array<string|int, mixed>withBindTo()
public
withBindTo(string|null $bindTo) : self
Parameters
- $bindTo : string|null
Return values
selfwithConnectTimeout()
public
withConnectTimeout(float $timeout) : self
Parameters
- $timeout : float
Return values
selfwithDnsTypeRestriction()
public
withDnsTypeRestriction(int|null $type) : self
Parameters
- $type : int|null
Return values
selfwithoutBindTo()
public
withoutBindTo() : self
Return values
selfwithoutDnsTypeRestriction()
public
withoutDnsTypeRestriction() : self
Return values
selfwithoutTcpNoDelay()
public
withoutTcpNoDelay() : self
Return values
selfwithoutTlsContext()
public
withoutTlsContext() : self
Return values
selfwithTcpNoDelay()
public
withTcpNoDelay() : self
Return values
selfwithTlsContext()
public
withTlsContext(ClientTlsContext|null $tlsContext) : self
Parameters
- $tlsContext : ClientTlsContext|null