lithium\net\socket\Context::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'mode' string
    • 'message' object

Returns

void

Source

	public function __construct(array $config = []) {
		$defaults = ['mode' => 'r', 'message' => null];
		parent::__construct($config + $defaults);
		$this->timeout($this->_config['timeout']);
	}