}
SMUX_SETTINGS::SMUX_SETTINGS()
- : ip(0),
- port(0)
+ : errorStr(),
+ ip(0),
+ port(0),
+ password()
{}
int SMUX_SETTINGS::ParseSettings(const MODULE_SETTINGS & s)
services(NULL),
corporations(NULL),
traffcounter(NULL),
+ errorStr(),
+ smuxSettings(),
+ settings(),
+ thread(),
+ mutex(),
running(false),
stopped(true),
sock(-1),
void SMUX::Run()
{
-SendOpenPDU(sock);
-SendRReqPDU(sock);
+stopped = true;
+if (!SendOpenPDU(sock))
+ return;
+if (!SendRReqPDU(sock))
+ return;
running = true;
stopped = false;