git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1618
270642c3-0616-0410-b53a-bc976706d245
prefix_ void senf::ClientSocketHandle<SPolicy>::readfrom(Sequence & container, Address & from,
unsigned limit)
{
- unsigned nread (available());
- if (limit>0 && nread>limit)
- nread = limit;
- container.resize(nread);
+ if (limit == 0)
+ limit = available();
+ container.resize(limit);
container.erase(readfrom( std::make_pair(container.begin(), container.end()), from ),
container.end());
}