33 #include "Exception.h" 71 virtual void update() = 0;
88 Directory(
const std::string & = std::string());
91 void set_uri(
const std::string &);
92 const std::string &uri()
const {
return _uri_text; }
99 Access access()
const {
return _access; }
101 const std::string &path()
const {
return _path; }
102 const std::string &host()
const {
return _host; }
103 const std::string &port()
const {
return _port; }
107 bool connected()
const {
109 return _sock != INVALID_SOCKET;
115 std::list<Job *> &jobs() {
return _jobs; }
116 Job *job(
unsigned int);
117 Job *find_job(
unsigned int);
119 void set_dir_info(DlsProto::DirInfo *)
const;
124 const std::string &error_msg()
const {
return _error_msg; }
125 bool serverSupportsMessages();
128 std::string _uri_text;
142 std::string _receive_buffer;
143 int _protocol_version;
144 bool _proto_messages_warning_given;
146 std::list<Job *> _jobs;
148 std::set<Observer *> _observers;
150 std::string _error_msg;
153 void _importNetwork();
157 void _send_data(
const char *,
size_t);
158 void _send_message(
const DlsProto::Request &);
159 void _receive_data();
160 void _receive_message(google::protobuf::Message &,
bool debug = 1);
161 void _receive_hello();
163 void _notify_observers();
Base class for all LibDLS exceptions.
Darstellung eines Kanals in der Anzeige.
Global data structures and functions.
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).