Changeset 18:0490048f256d in xplcommon for src
- Timestamp:
- 12/29/12 11:05:33 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/xplcommon/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/LocalServerSocket.cc
r14 r18 36 36 #include <pwd.h> 37 37 #include <unistd.h> 38 #include <poll.h> 38 39 39 40 #include <sys/socket.h> … … 87 88 //------------------------------------------------------------------------------ 88 89 90 bool LocalServerSocket::isReady() 91 { 92 return false; 93 } 94 95 //------------------------------------------------------------------------------ 96 97 void LocalServerSocket::handleEvents(short events) 98 { 99 if ((events&POLLIN)==POLLIN) { 100 acceptor.accept(); 101 } 102 } 103 104 //------------------------------------------------------------------------------ 105 89 106 // Local Variables: 90 107 // mode: C++ -
src/xplcommon/posix/LocalServerSocket.h
r15 r18 94 94 LocalAcceptor& getAcceptor(); 95 95 96 protected: 97 /** 98 * Indicate if the waitable is ready, i.e. there is no need to 99 * wait for it. 100 */ 101 virtual bool isReady(); 102 103 /** 104 * Handle the given events. 105 */ 106 virtual void handleEvents(short events); 107 96 108 friend class LocalAcceptor; 97 109 };
Note:
See TracChangeset
for help on using the changeset viewer.