QTfrontend/net/newnetclient.cpp
changeset 14838 bdb47255d7e4
parent 13969 4d761adb4e6c
child 14865 90cf07c60feb
equal deleted inserted replaced
14837:5443e5e0faa3 14838:bdb47255d7e4
   291     {
   291     {
   292         if (lst.size() == 2)
   292         if (lst.size() == 2)
   293             emit Warning(HWApplication::translate("server", lst[1].toLatin1().constData()));
   293             emit Warning(HWApplication::translate("server", lst[1].toLatin1().constData()));
   294         else
   294         else
   295             emit Warning("Unknown warning");
   295             emit Warning("Unknown warning");
       
   296         return;
       
   297     }
       
   298 
       
   299     if (lst[0] == "REDIRECT")
       
   300     {        
       
   301         if (lst.size() < 2 || lst[1].toInt() == 0)
       
   302         {
       
   303             qWarning("Net: Malformed REDIRECT message");
       
   304             return;            
       
   305         }
       
   306 
       
   307         quint16 port = lst[1].toInt();
       
   308         if (port == 0) 
       
   309         {
       
   310             qWarning() << "Invalid redirection port";            
       
   311         }
       
   312         else 
       
   313         {
       
   314             emit redirected(port);
       
   315         }
   296         return;
   316         return;
   297     }
   317     }
   298 
   318 
   299     if (lst[0] == "CONNECTED")
   319     if (lst[0] == "CONNECTED")
   300     {
   320     {