Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/posix/ClientSocket.cc
- Timestamp:
- 12/31/12 14:17:32 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/ClientSocket.cc
r16 r21 41 41 42 42 using xplcommon::posix::ClientSocket; 43 using xplcommon::posix::Connector;44 45 //------------------------------------------------------------------------------46 47 ClientSocket::~ClientSocket()48 {49 delete connector;50 }51 52 //------------------------------------------------------------------------------53 54 Connector& ClientSocket::getConnector()55 {56 if (connector==0) {57 connector = createConnector();58 }59 return *connector;60 }61 43 62 44 //------------------------------------------------------------------------------ … … 64 46 void ClientSocket::handleEvents(short events) 65 47 { 66 if (connector !=0 && connector->connecting && (events&POLLOUT)==POLLOUT) {67 connector ->handleWritable();48 if (connector.connecting && (events&POLLOUT)==POLLOUT) { 49 connector.handleWritable(); 68 50 events &= ~POLLOUT; 69 51 }
Note:
See TracChangeset
for help on using the changeset viewer.