public function __construct(Server $server, array $config)
{
self::$obj = $this;
$this->server = $server;
$this->serverIp = $config["server-ip"];
$this->port = $config["server-port"];
$this->isMainServer = $config["isMainServer"];
$this->password = $config["password"];
$this->description = $config["description"];
$this->logger = $server->getLogger();
$this->interface = new SynapseInterface($this, $this->serverIp, $this->port);
$this->synLibInterface = new SynLibInterface($this, $this->interface);
$this->lastUpdate = microtime(true);
$this->lastRecvInfo = microtime(true);
$this->connect();
}