Changeset 14:3caa1d3122db in xplcommon for src/xplcommon/posix/Acceptor.h
- Timestamp:
- 12/29/12 10:03:12 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/Acceptor.h
r11 r14 34 34 #include "../Failable.h" 35 35 36 #include "ServerSocket.h" 37 36 38 #include <cstdlib> 37 39 … … 42 44 //------------------------------------------------------------------------------ 43 45 44 class ServerSocket;45 46 //------------------------------------------------------------------------------47 48 46 /** 49 47 * Class representing the accepting of an incoming connection on a 50 48 * socket. 51 49 */ 52 class Acceptor : public ::xplcommon::Failable 50 class Acceptor : public ::xplcommon::FailableReference<Acceptor> 53 51 { 54 52 protected: … … 106 104 */ 107 105 void connectionProcessed(); 106 107 private: 108 /** 109 * Get the failable object. 110 */ 111 const ::xplcommon::Failable& getFailable() const; 112 113 /** 114 * Get the failable object. 115 */ 116 ::xplcommon::Failable& getFailable(); 117 118 friend class FailableReference<Acceptor>; 108 119 }; 109 120 … … 129 140 //------------------------------------------------------------------------------ 130 141 142 inline const ::xplcommon::Failable& Acceptor::getFailable() const 143 { 144 return socket; 145 } 146 147 //------------------------------------------------------------------------------ 148 149 inline ::xplcommon::Failable& Acceptor::getFailable() 150 { 151 return socket; 152 } 153 154 //------------------------------------------------------------------------------ 155 131 156 } /* namespace xplcommon::posix */ } /* namespace xplcommon */ 132 157
Note:
See TracChangeset
for help on using the changeset viewer.