Changeset 18:0490048f256d in xplcommon
- Timestamp:
- 12/29/12 11:05:33 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 1 added
- 3 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 }; -
test/Makefile.am
r4 r18 1 1 INCLUDES=-I$(top_srcdir)/src 2 2 3 noinst_PROGRAMS=testevent 3 noinst_PROGRAMS=testevent testlocsock 4 4 5 5 testevent_SOURCES=testevent.cc 6 6 testevent_LDADD=../src/xplcommon/libxplcommon.la -lpthread 7 8 testlocsock_SOURCES=testlocsock.cc 9 testlocsock_LDADD=../src/xplcommon/libxplcommon.la -lpthread
Note:
See TracChangeset
for help on using the changeset viewer.