public void Initialize(ProxyServer proxyServer) { m_proxyServer = proxyServer; m_eventThreadStop.Reset(); StartWatchPacketThread(); StartSendPacketThread(); }
public ServerContext() { byte[] cachedData = FileTool.ReadFile("ServerCache.dat"); proxyServer = ProxyServer.Instance; uint ret = proxyServer.Initialize("222.122.209.155", 50001, 5000, 60000, false, false, MarketCode.GooglePlay, LocaleCode.Korean, cachedData); if (ret != 0) { Debug.LogError("ProxyServer.Initialize ret=" + ret); } proxyServer.NotifyHandler = OnNotify; //ProxyServer.LogHandler = OnLog; proxyServer.SynchronizeItemList(); }
internal void SetServer(ProxyServer server) { m_server = server; }