gwj
115 分钟以前 ec03bcde8c5f848a11bb06bc58e8641b81cd77c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
•âîic@s5dZddlZddlZddd„ƒYZdS(s
ÅäÖÃÎļþ¹ÜÀíÄ£¿é
iÿÿÿÿNt ConfigReadercBsžeZdZdZdZd„Zed„ƒZd„Z    d„Z
d„Z d„Z d„Z d„Zd    „Zd
„Zd „Zd „Zd „Zd„ZRS(sÅäÖÃÎļþ¶ÁÈ¡Æ÷µ¥ÀýcCs|jdkrˆddl}|jdkr<|jƒ|_n|j>|jdkrtt|ƒj|ƒ|_t|j_    nWdQXn|jS(Niÿÿÿÿ(
t    _instancetNonet    threadingt_locktLocktsuperRt__new__tFalset _initialized(tclsR((s&.\ServerPython\EventServerPY\config.pyRs 
cCs%|jdkr|ƒ|_n|jS(s »ñÈ¡µ¥ÀýʵÀýN(RR(R
((s&.\ServerPython\EventServerPY\config.pytinstancescCsft|dƒr|jrdSt|_tjƒ|_tjjtjjt    ƒdƒ|_
|j ƒdS(NR    s
Config.ini( thasattrR    tTruet ConfigParsertconfigtostpathtjointdirnamet__file__t config_patht load_config(tself((s&.\ServerPython\EventServerPY\config.pyt__init__%s     $cCs9tjj|jƒs"|jƒn|jj|jƒdS(s ¼ÓÔØÅäÖÃÎļþN(RRtexistsRt_create_default_configRtread(R((s&.\ServerPython\EventServerPY\config.pyR.s cCs|jjdƒ|jjdddƒ|jjdddƒ|jjdddƒ|jjddd    ƒ|jjdd
d ƒ|jjd ƒ|jjd d dƒ|jjd ddƒ|jjdƒ|jjdddƒt|jdƒ}|jj|ƒWdQXdS(s´´½¨Ä¬ÈÏÅäÖÃÎļþt    WriteFilet    WriteModet1t MaxFileSizet1024t LogFilePaths .\EventLogst MaxOpenFilest500t IdleTimeoutt300t    PacketLogtEnablePacketLogt PacketLogPaths C:\ServerLogtNetworkt
ListenPortt60000twbN(Rt add_sectiontsettopenRtwrite(Rtf((s&.\ServerPython\EventServerPY\config.pyR5scCs|jjddƒS(s »ñÈ¡¼àÌý¶Ë¿ÚR)R*(Rtgetint(R((s&.\ServerPython\EventServerPY\config.pytget_listen_portHscCs|jjddƒS(s4»ñȡдÎļþģʽ: 1=°´Ìì, 2=°´Ð¡Ê±, 3=°´´óС, 4=µ¥ÎļþRR(RR2(R((s&.\ServerPython\EventServerPY\config.pytget_write_modeLscCs|jjddƒS(s»ñÈ¡×î´óÎļþ´óС(KB)RR(RR2(R((s&.\ServerPython\EventServerPY\config.pytget_max_file_sizePscCs|jjddƒS(s»ñÈ¡ÈÕÖ¾Îļþ·¾¶RR!(Rtget(R((s&.\ServerPython\EventServerPY\config.pytget_log_file_pathTscCs|jjddƒS(sÊÇ·ñÆôÓ÷â°üÈÕÖ¾R&R'(RR2(R((s&.\ServerPython\EventServerPY\config.pytget_enable_packet_logXscCs|jjddƒS(s»ñÈ¡·â°üÈÕ־·¾¶R&R((RR6(R((s&.\ServerPython\EventServerPY\config.pytget_packet_log_path\scCs|jjddƒS(s»ñÈ¡×î´óÔÊÐíͬʱ´ò¿ªµÄÎļþÊýRR"(RR2(R((s&.\ServerPython\EventServerPY\config.pytget_max_open_files`scCs|jjddƒS(s»ñÈ¡Îļþ¿ÕÏлØÊÕ³¬Ê±Ê±¼ä£¨Ã룩RR$(RR2(R((s&.\ServerPython\EventServerPY\config.pytget_idle_timeoutdscCs/t|jdƒ}|jj|ƒWdQXdS(s±£´æÅäÖÃR,N(R/RRR0(RR1((s&.\ServerPython\EventServerPY\config.pytsavehsN(t__name__t
__module__t__doc__RRRRt classmethodR RRRR3R4R5R7R8R9R:R;R<(((s&.\ServerPython\EventServerPY\config.pyR s"                                                     ((R?RRR(((s&.\ServerPython\EventServerPY\config.pyt<module>s