protected getContext ( Phergie\Irc\ConnectionInterface $connection ) : array | ||
$connection | Phergie\Irc\ConnectionInterface | |
return | array | Associative array of context option key-value pairs |
protected function getContext(ConnectionInterface $connection)
{
$context = array();
if ($this->getForceIpv4Flag($connection)) {
$context['bindto'] = '0.0.0.0:0';
}
$context = array('socket' => $context);
return $context;
}