view include/net.h @ 16:b651aa41b9d4 default tip

hhsinfo method (server)
author pyon@macmini
date Mon, 15 Jul 2019 07:03:05 +0900
parents c262e17de9b1
children
line wrap: on
line source

// Filename   : net.h
// Last Change: 2019-07-08 月 08:45:51.
//

#pragma once

#include <wx/msgdlg.h> 
#include <wx/wfstream.h>
#include <wx/protocol/http.h>

class RsHttp {
	private:
		wxString m_server;
		int      m_port;

	public:
		RsHttp();
		~RsHttp();

		void SetServer( wxString server, int port ) { m_server = server; m_port = port; };
		bool Get( wxString url, wxString file );
		bool GetDB( bool a, bool h, bool i);
		int  GetImagesSize( wxString hhs, wxString date );
		void GetImages( wxString hhs, wxString date, wxString flag );
};