about summary refs log tree commit diff stats
path: root/src/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index 901c7b5..c1c6344 100644 --- a/src/client.h +++ b/src/client.h
@@ -31,6 +31,7 @@ namespace twitter {
31 stream(client& _client); 31 stream(client& _client);
32 32
33 void setNotifyCallback(notify_callback _n); 33 void setNotifyCallback(notify_callback _n);
34 void setReceiveAllReplies(bool _arg);
34 35
35 bool isRunning() const; 36 bool isRunning() const;
36 void start(); 37 void start();
@@ -54,13 +55,13 @@ namespace twitter {
54 bool _stop = false; 55 bool _stop = false;
55 std::thread _thread; 56 std::thread _thread;
56 std::mutex _running_mutex; 57 std::mutex _running_mutex;
57 std::mutex _notify_mutex;
58 std::mutex _stall_mutex; 58 std::mutex _stall_mutex;
59 std::string _buffer; 59 std::string _buffer;
60 time_t _last_write; 60 time_t _last_write;
61 bool _established = false; 61 bool _established = false;
62 backoff _backoff_type = backoff::none; 62 backoff _backoff_type = backoff::none;
63 std::chrono::milliseconds _backoff_amount; 63 std::chrono::milliseconds _backoff_amount;
64 bool _receive_all_replies = false;
64 }; 65 };
65 66
66 client(const auth& _auth); 67 client(const auth& _auth);
@@ -80,7 +81,9 @@ namespace twitter {
80 81
81 const user& getUser() const; 82 const user& getUser() const;
82 83
84 // NOTE: stream setting function calls will fail silently when stream is running
83 void setUserStreamNotifyCallback(stream::notify_callback callback); 85 void setUserStreamNotifyCallback(stream::notify_callback callback);
86 void setUserStreamReceiveAllReplies(bool _arg);
84 void startUserStream(); 87 void startUserStream();
85 void stopUserStream(); 88 void stopUserStream();
86 89