Ignore:
Timestamp:
02/09/13 08:59:10 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed problems with detecting a broken connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/XPlane.cc

    r26 r30  
    4040
    4141#include <memory>
     42
     43#ifndef _WIN32
     44#include <signal.h>
     45#endif
    4246
    4347//------------------------------------------------------------------------------
     
    96100//------------------------------------------------------------------------------
    97101
    98 void XPlane::checkResult() throw(ProtocolException)
     102void XPlane::checkResult() throw(ProtocolException, IOException)
    99103{
    100104    uint8_t result = stream->readU8();
     
    137141        }
    138142    }
     143
     144#ifndef _WIN32
     145    signal(SIGPIPE, SIG_IGN);
     146#endif
    139147
    140148    socket = clientSocket.release();
Note: See TracChangeset for help on using the changeset viewer.