diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socketengine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 0c816943e..e00657a54 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -38,6 +38,12 @@ SocketEngine::~SocketEngine() #endif } +char SocketEngine::GetType(int fd) +{ + /* Mask off the top bit used for 'read/write' state */ + return (ref[fd] & 0x7F); +} + bool SocketEngine::AddFd(int fd, bool readable, char type) { this->fds.push_back(fd); |