Changeset 15 in libcf++ for trunk/src/network.cpp
- Timestamp:
- 06/14/15 03:03:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/network.cpp
r14 r15 153 153 } 154 154 155 cf::bool_t cf::network::host::empty() const156 {157 return (address().empty() || port() == 0) ? true : false;158 }159 160 155 cf::network::tcp::tcp(const cf::socket_t attachedSocket) 161 156 throw (cf::exception) … … 351 346 throw (cf::exception) 352 347 { 353 if (in. empty())354 THROW_EXCEPTION("send data is null orzero-bytes");348 if (in.size() == 0) 349 THROW_EXCEPTION("send data is zero-bytes"); 355 350 356 351 cf::char_t * buf = reinterpret_cast<cf::char_t *>(in.buffer());
Note:
See TracChangeset
for help on using the changeset viewer.