final class TlsOptions

Methods

static TlsOptions
fromArray(array $options)

Create TLS options from a Laravel-style stream context.

bool
enabled()

Determine whether TLS is enabled.

int
socketType(int $type = SWOOLE_SOCK_TCP)

Apply TLS to a Swoole socket type when enabled.

array
settings()

Get the translated Swoole settings.

Details

at line 19
static TlsOptions fromArray(array $options)

Create TLS options from a Laravel-style stream context.

Parameters

array $options

Return Value

TlsOptions

at line 53
bool enabled()

Determine whether TLS is enabled.

Return Value

bool

at line 62
int socketType(int $type = SWOOLE_SOCK_TCP)

Apply TLS to a Swoole socket type when enabled.

Parameters

int $type

Return Value

int

at line 72
array settings()

Get the translated Swoole settings.

Return Value

array