Changeset 14:3caa1d3122db in xplcommon for src/xplcommon/posix/Connector.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/Connector.h
r6 r14 34 34 #include "../Failable.h" 35 35 36 #include "ClientSocket.h" 37 36 38 #include <cstdlib> 37 39 … … 46 48 //------------------------------------------------------------------------------ 47 49 48 class ClientSocket;49 50 //------------------------------------------------------------------------------51 52 50 /** 53 51 * Class representing the creation of a connection to some remote 54 52 * entity, like a socket or a pipe. 55 53 */ 56 class Connector : public Failable 54 class Connector : public FailableReference<Connector> 57 55 { 58 56 private: … … 112 110 void handleWritable(); 113 111 112 private: 113 /** 114 * Get the failable object. 115 */ 116 const ::xplcommon::Failable& getFailable() const; 117 118 /** 119 * Get the failable object. 120 */ 121 ::xplcommon::Failable& getFailable(); 122 123 friend class FailableReference<Connector>; 114 124 friend class ClientSocket; 115 125 }; … … 128 138 //------------------------------------------------------------------------------ 129 139 140 inline const ::xplcommon::Failable& Connector::getFailable() const 141 { 142 return socket; 143 } 144 145 //------------------------------------------------------------------------------ 146 147 inline ::xplcommon::Failable& Connector::getFailable() 148 { 149 return socket; 150 } 151 152 //------------------------------------------------------------------------------ 153 130 154 } /* namespace xplcommon::posix */ } /* namespace xplcommon */ 131 155
Note:
See TracChangeset
for help on using the changeset viewer.