Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/posix/ClientSocket.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/ClientSocket.h
r14 r21 51 51 private: 52 52 /** 53 * The connector , if any. It is created only, if requested.53 * The connector. 54 54 */ 55 Connector *connector;55 Connector& connector; 56 56 57 57 protected: … … 59 59 * Construct the socket with the given parameters. 60 60 */ 61 ClientSocket(int domain, int type, Waiter* waiter = 0, int protocol = 0, 61 ClientSocket(int domain, int type, Connector& connector, 62 Waiter* waiter = 0, int protocol = 0, 62 63 size_t readingCapacity = DEFAULT_CAPACITY, 63 64 size_t writingCapacity = DEFAULT_CAPACITY); 64 65 65 public:66 /**67 * Destroy the socket.68 */69 virtual ~ClientSocket();70 71 /**72 * Get the connector. Use this object to connect to another socket.73 */74 Connector& getConnector();75 76 66 protected: 77 /**78 * Create a new connector of the correct type.79 */80 virtual Connector* createConnector() = 0;81 82 67 /** 83 68 * Handle any events on the file descriptor. If a connection is in … … 105 90 //------------------------------------------------------------------------------ 106 91 107 inline ClientSocket::ClientSocket(int domain, int type, Waiter* waiter, 108 int protocol, size_t readingCapacity, 92 inline ClientSocket::ClientSocket(int domain, int type, Connector& connector, 93 Waiter* waiter, int protocol, 94 size_t readingCapacity, 109 95 size_t writingCapacity) : 110 96 Socket(domain, type, waiter, protocol, readingCapacity, writingCapacity), 111 connector( 0)97 connector(connector) 112 98 { 113 99 }
Note:
See TracChangeset
for help on using the changeset viewer.