Beispiel #1
0
IseOptions::IseOptions()
{
    setLogFileName(getAppSubPath("log") + changeFileExt(getAppExeName(false), ".log"), false);
    setIsDaemon(true);
    setAllowMultiInstance(false);

    setServerType(DEF_SERVER_TYPE);
    setAssistorThreadCount(DEF_ASSISTOR_THREAD_COUNT);

    setUdpServerPort(DEF_UDP_SERVER_PORT);
    setUdpListenerThreadCount(DEF_UDP_LISTENER_THREAD_COUNT);
    setUdpRequestGroupCount(DEF_UDP_REQ_GROUP_COUNT);
    for (int i = 0; i < DEF_UDP_REQ_GROUP_COUNT; i++)
    {
        setUdpRequestQueueCapacity(i, DEF_UDP_REQ_QUEUE_CAPACITY);
        setUdpWorkerThreadCount(i, DEF_UDP_WORKER_THREADS_MIN, DEF_UDP_WORKER_THREADS_MAX);
    }
    setUdpRequestMaxWaitTime(DEF_UDP_REQ_MAX_WAIT_TIME);
    setUdpWorkerThreadTimeout(DEF_UDP_WORKER_THREAD_TIMEOUT);
    setUdpRequestQueueAlertLine(DEF_UDP_QUEUE_ALERT_LINE);
    setUdpAdjustThreadInterval(DEF_UDP_ADJUST_THREAD_INTERVAL);

    setTcpServerCount(DEF_TCP_SERVER_COUNT);
    for (int i = 0; i < DEF_TCP_SERVER_COUNT; i++)
        setTcpServerPort(i, DEF_TCP_SERVER_PORT);
    for (int i = 0; i < DEF_TCP_SERVER_COUNT; i++)
        setTcpServerEventLoopCount(i, DEF_TCP_SERVER_EVENT_LOOP_COUNT);
    setTcpClientEventLoopCount(DEF_TCP_CLIENT_EVENT_LOOP_COUNT);
    setTcpMaxRecvBufferSize(DEF_TCP_MAX_RECV_BUFFER_SIZE);
}
Beispiel #2
0
ProtocolConfig::ProtocolConfig()
{
	m_host = "localhost";
	m_port = 7171;
	setVersion(CLIENT_OS_WIN, CLIENT_VERSION_830);
	setServerType(SERVER_OTSERV);
	setVersionOverride(0); // no override
}
Beispiel #3
0
ChannelServer::ChannelServer() :
m_channel(-1)
{
	setServerType(ServerTypes::Channel);
}
Beispiel #4
0
 void start(const QUrl &url)
 {
     setServerType(Ispdb::IspWellKnow);
     startJob(url);
 }