Changeset 19049 for trunk/FACT++


Ignore:
Timestamp:
07/12/18 14:33:59 (6 years ago)
Author:
tbretz
Message:
Implemented ConnectionSSL and updated tngweather to use a secure connection.
Location:
trunk/FACT++/src
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/tngweather.cc

    r18339 r19049  
    1111#include "StateMachineDim.h"
    1212#include "StateMachineAsio.h"
    13 #include "Connection.h"
     13#include "ConnectionSSL.h"
    1414#include "LocalControl.h"
    1515#include "Configuration.h"
     
    3131
    3232
    33 class ConnectionWeather : public Connection
     33class ConnectionWeather : public ConnectionSSL
    3434{
    3535    uint16_t fInterval;
     
    309309        }
    310310
    311         if (!is_open())
     311        if (IsClosed())
    312312        {
    313313            // For example: Here we could schedule a new accept if we
     
    341341
    342342public:
    343     ConnectionWeather(ba::io_service& ioservice, MessageImp &imp) : Connection(ioservice, imp()),
     343    ConnectionWeather(ba::io_service& ioservice, MessageImp &imp) : ConnectionSSL(ioservice, imp()),
    344344        fIsVerbose(true), fDust(-1),
    345345        fLastReport(Time::none), fLastReception(Time::none), fLastSeeing(Time::none),
     
    352352    {
    353353        fIsVerbose = b;
    354         Connection::SetVerbose(b);
     354        ConnectionSSL::SetVerbose(b);
    355355    }
    356356
     
    553553    control.add_options()
    554554        ("no-dim,d",  po_switch(),    "Disable dim services")
    555         ("addr,a",  var<string>("tngweb.tng.iac.es:80"),  "Network address of Cosy")
     555        ("addr,a",  var<string>("tngweb.tng.iac.es:443"),  "Network address of Cosy")
    556556        ("url,u",  var<string>("/api/meteo/weather/feed.xml"),  "File name and path to load")
    557557        ("quiet,q", po_bool(true),  "Disable printing contents of all received messages (except dynamic data) in clear text.")
Note: See TracChangeset for help on using the changeset viewer.