Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/posix/LocalClientSocket.h
- Timestamp:
- 12/31/12 14:17:32 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/LocalClientSocket.h
r15 r21 34 34 #include "ClientSocket.h" 35 35 36 #include <sys/un.h>36 #include "LocalConnector.h" 37 37 38 38 //------------------------------------------------------------------------------ … … 53 53 private: 54 54 /** 55 * The connector class.56 */57 class LocalConnector;58 59 /**60 55 * The address to use for connecting. 61 56 */ 62 struct sockaddr_un sun;57 LocalConnector connector; 63 58 64 59 public: … … 76 71 size_t writingCapacity = DEFAULT_CAPACITY); 77 72 78 protected:79 73 /** 80 * Create a new connector of the correct type.74 * Get the connector for this client. 81 75 */ 82 virtual Connector* createConnector();76 LocalConnector& getConnector(); 83 77 84 78 friend class LocalConnector; 85 79 }; 80 81 //------------------------------------------------------------------------------ 82 // Inline definitions 83 //------------------------------------------------------------------------------ 84 85 inline LocalConnector& LocalClientSocket::getConnector() 86 { 87 return connector; 88 } 86 89 87 90 //------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.