Changeset 11:9adb0b9c456b in xplcommon for src
- Timestamp:
- 12/29/12 09:03:23 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/xplcommon/posix
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/Acceptor.h
r6 r11 52 52 class Acceptor : public ::xplcommon::Failable 53 53 { 54 pr ivate:54 protected: 55 55 /** 56 56 * The socket we belong to. … … 58 58 ServerSocket& socket; 59 59 60 protected:61 60 /** 62 61 * The file descriptor accepted the last time. -
src/xplcommon/posix/Makefile.am
r6 r11 13 13 Socket.cc \ 14 14 Connector.cc \ 15 ClientSocket.cc 15 ClientSocket.cc \ 16 LocalServerSocket.cc 16 17 17 18 include_xplcommon_posixdir=$(includedir)/xplcommon/posix … … 29 30 Socket.h \ 30 31 Connector.h \ 31 ClientSocket.h 32 ClientSocket.h \ 33 LocalSocket.h \ 34 LocalAcceptor.h \ 35 LocalServerSocket.h -
src/xplcommon/posix/Socket.h
r6 r11 67 67 size_t writingCapacity = DEFAULT_CAPACITY); 68 68 69 /** 70 * Construct the socket with the given file descriptor. 71 */ 72 Socket(int fd, Waiter* waiter = 0, 73 size_t readingCapacity = DEFAULT_CAPACITY, 74 size_t writingCapacity = DEFAULT_CAPACITY); 75 69 76 public: 70 77 /** … … 89 96 //------------------------------------------------------------------------------ 90 97 98 inline Socket::Socket(int fd, Waiter* waiter, 99 size_t readingCapacity, size_t writingCapacity) : 100 BufferedWaitable(waiter, fd, readingCapacity, writingCapacity) 101 { 102 } 103 104 //------------------------------------------------------------------------------ 105 91 106 } /* namespace xplcommon::posix */ } /* namespace xplcommon */ 92 107 -
src/xplcommon/posix/Waitable.h
r6 r11 82 82 83 83 /** 84 * Get the waiter. 85 */ 86 Waiter* getWaiter() const; 87 88 /** 84 89 * Indicate if this waitable is valid, i.e. the file descriptor is 85 90 * non-negative. … … 120 125 //------------------------------------------------------------------------------ 121 126 127 inline Waiter* Waitable::getWaiter() const 128 { 129 return waiter; 130 } 131 132 //------------------------------------------------------------------------------ 133 122 134 inline bool Waitable::isValid() const 123 135 {
Note:
See TracChangeset
for help on using the changeset viewer.