Beispiel #1
0
    //初始化
    public void Init()
    {
        WZSocket <ServerSession, NetMsg> server = new WZSocket <ServerSession, NetMsg>();

        server.StartAsServer(ServerCfg.srvIP, ServerCfg.srvPort);

        WZTool.LogMsg("NetSvc Init Done.");
    }
Beispiel #2
0
    public static void Log(string msg = "", LogType logType = LogType.LogType_Log)
    {
        LogLevel logLv = (LogLevel)logType;

        WZTool.LogMsg(msg, logLv);
    }