2014-02-10 15:42:38 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2014
|
|
|
|
// David Freese, W1HKJ
|
|
|
|
//
|
|
|
|
// This file is part of fldigi
|
|
|
|
//
|
|
|
|
// fldigi is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// fldigi is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-10-07 07:28:55 +00:00
|
|
|
#ifndef NETWORK_H_
|
|
|
|
#define NETWORK_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
bool request_reply(const std::string& node, const std::string& service,
|
|
|
|
const std::string& request, std::string& reply, double timeout = 0.0);
|
|
|
|
bool fetch_http(const std::string& url, std::string& reply, double timeout = 0.0);
|
2013-06-01 07:40:24 +00:00
|
|
|
bool fetch_http_gui(const std::string& url, std::string& reply, double timeout = 0.0);
|
2009-02-04 05:20:23 +00:00
|
|
|
bool fetch_http_gui(const std::string& url, std::string& reply, double timeout,
|
|
|
|
void(*busy)(void*), void* arg1, void(*done)(void*), void* arg2);
|
2008-10-07 07:28:55 +00:00
|
|
|
|
|
|
|
#endif // NETWORK_H_
|