Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2108)

Unified Diff: webrtc/base/physicalsocketserver.h

Issue 2893723002: Add methods to change enabled events in PhysicalSocket. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/physicalsocketserver.h
diff --git a/webrtc/base/physicalsocketserver.h b/webrtc/base/physicalsocketserver.h
index f2994b2a673f0514c3f4e8c20b71b889d1d4c33d..5f843da20c78879181f7bc09bd1fddcc26691f9c 100644
--- a/webrtc/base/physicalsocketserver.h
+++ b/webrtc/base/physicalsocketserver.h
@@ -171,11 +171,15 @@ class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> {
void UpdateLastError();
void MaybeRemapSendError();
+ uint8_t enabled_events() const { return enabled_events_; }
+ void SetEnabledEvents(uint8_t events);
+ void EnableEvents(uint8_t events);
+ void DisableEvents(uint8_t events);
+
static int TranslateOption(Option opt, int* slevel, int* sopt);
PhysicalSocketServer* ss_;
SOCKET s_;
- uint8_t enabled_events_;
bool udp_;
CriticalSection crit_;
int error_ GUARDED_BY(crit_);
@@ -185,6 +189,9 @@ class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> {
#if !defined(NDEBUG)
std::string dbg_addr_;
#endif
+
+ private:
+ uint8_t enabled_events_ = 0;
};
class SocketDispatcher : public Dispatcher, public PhysicalSocket {
« no previous file with comments | « no previous file | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698