- Timestamp:
- 06/07/15 17:37:53 (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf/network.h
r9 r10 36 36 * @param port port number 37 37 */ 38 host(const std::string & address = "",39 const cf::uint16_t port = 0);38 host(const std::string & address, 39 const cf::uint16_t port); 40 40 41 41 /** … … 43 43 * @return host address 44 44 */ 45 std::stringaddress() const;45 const std::string & address() const; 46 46 47 47 /** -
trunk/src/bin.cpp
r7 r10 75 75 cf::void_t cf::bin::append(const cf::bin & in) 76 76 { 77 append( (in.buffer()), in.size());77 append(in.buffer(), in.size()); 78 78 } 79 79 -
trunk/src/network.cpp
r9 r10 143 143 } 144 144 145 std::stringcf::network::host::address() const145 const std::string & cf::network::host::address() const 146 146 { 147 147 return mAddress; … … 390 390 THROW_EXCEPTION("cannot receive (" << cf::exception::systemCode() << ")"); 391 391 else if (receivedSize == 0) 392 out.clear();392 THROW_EXCEPTION("connection closed"); 393 393 else if (receivedSize < size) 394 394 out.resize(receivedSize);
Note:
See TracChangeset
for help on using the changeset viewer.