コード例 #1
0
 public void Dispose()
 {
     if (tradeWS != null)
     {
         tradeWS.destroy();
         ConstMothed.ClearData();
         tradeWS = null;
     }
 }
コード例 #2
0
 public bool StartTradeSocket(bool IsFirstConnection)
 {
     if (_titetemp == null)
     {
         return(true);
     }
     if (tradeWS == null)
     {
         ConstMothed.Init();
         tradeWS           = new TradeServerWSClient();
         tradeWS.socketUrl = "ws://" + _titetemp.IP + ":" + _titetemp.IPPort;
         return(tradeWS.startServer(IsFirstConnection));
     }
     return(true);
 }