Changeset 15 in libcf++ for trunk/src/network.cpp


Ignore:
Timestamp:
06/14/15 03:03:32 (9 years ago)
Author:
cheese
Message:

#1 remove unused interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/network.cpp

    r14 r15  
    153153}
    154154
    155 cf::bool_t cf::network::host::empty() const
    156 {
    157     return (address().empty() || port() == 0) ? true : false;
    158 }
    159 
    160155cf::network::tcp::tcp(const cf::socket_t attachedSocket)
    161156    throw (cf::exception)
     
    351346    throw (cf::exception)
    352347{
    353     if (in.empty())
    354         THROW_EXCEPTION("send data is null or zero-bytes");
     348    if (in.size() == 0)
     349        THROW_EXCEPTION("send data is zero-bytes");
    355350
    356351    cf::char_t * buf = reinterpret_cast<cf::char_t *>(in.buffer());
Note: See TracChangeset for help on using the changeset viewer.