4 |
#include "daemon.h" |
#include "daemon.h" |
5 |
#include "common.h" |
#include "common.h" |
6 |
|
|
7 |
#include "GsmModem.h" |
#include "ModemTransceiver.h" |
8 |
#include "serialport/SerialPort.h" |
#include "serialport/SerialPort.h" |
9 |
#include "SmsDaemon.h" |
#include "SmsDaemon.h" |
10 |
#include "ConfigFile.h" |
#include "ConfigFile.h" |
70 |
sms_exit(1); |
sms_exit(1); |
71 |
} |
} |
72 |
|
|
73 |
GsmModem modem(port); |
ModemTransceiver modem(port); |
74 |
|
|
75 |
try |
try |
76 |
{ |
{ |
78 |
} |
} |
79 |
catch (std::exception& e) |
catch (std::exception& e) |
80 |
{ |
{ |
81 |
cmn->logMessage( string("GsmModem Exception: ") + e.what() ); |
cmn->logMessage( string("ModemTransceiver Exception: ") + e.what() ); |
82 |
sms_exit(2); |
sms_exit(2); |
83 |
} |
} |
84 |
|
|