aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-12 18:38:16 +0100
committerGravatar Sadie Powell2022-10-12 19:34:22 +0100
commita4ec09b455605cb6030ba4c8ae1a6664ad1d7f8d (patch)
tree3189bdb438bd9dc374ba26a5a244878d90636e51 /include/socketengine.h
parentRemove some unused method arguments. (diff)
Clean up various socket-related code.
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 70d39d2b8..5bc2d5dcf 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -155,18 +155,17 @@ class CoreExport EventHandler
{
private:
/** Private state maintained by socket engine */
- int event_mask;
+ int event_mask = 0;
void SetEventMask(int mask) { event_mask = mask; }
-protected:
/** File descriptor.
* All events which can be handled must have a file descriptor. This
* allows you to add events for sockets, fifo's, pipes, and various
* other forms of IPC. Do not change this while the object is
* registered with the SocketEngine
*/
- int fd;
+ int fd = -1;
public:
/** Get the current file descriptor
@@ -186,10 +185,6 @@ public:
*/
void SetFd(int FD);
- /** Constructor
- */
- EventHandler();
-
/** Called by the socket engine in case of a read event
*/
virtual void OnEventHandlerRead() = 0;