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


Ignore:
Timestamp:
06/07/15 17:37:53 (9 years ago)
Author:
cheese
Message:

#1 fix handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/network.cpp

    r9 r10  
    143143}
    144144
    145 std::string cf::network::host::address() const
     145const std::string & cf::network::host::address() const
    146146{
    147147    return mAddress;
     
    390390        THROW_EXCEPTION("cannot receive (" << cf::exception::systemCode() << ")");
    391391    else if (receivedSize == 0)
    392         out.clear();
     392        THROW_EXCEPTION("connection closed");
    393393    else if (receivedSize < size)
    394394        out.resize(receivedSize);
Note: See TracChangeset for help on using the changeset viewer.