- Модуль: mail
- Путь к файлу: ~/bitrix/modules/mail/classes/general/smtp.php
- Класс: CSMTPServerHost
- Вызов: CSMTPServerHost::AddConnection
function AddConnection()
{
if(Is_Resource($sock = stream_socket_accept($this->sockServer, 0, $ip)))
{
$this->lastClientId++;
$id = $this->lastClientId;
$this->WriteToLog("Client connected (".$id.", ".$ip.", ".$sock.")", 5);
stream_set_timeout($sock, 5);
$this->arClients[$id] = new CSMTPConnection($id, $sock, $this);
$this->arClients[$id]->ip = $ip;
$this->arSockets[$id] = $sock;
$this->conCount++;
return true;
}
return false;
}