posix/socket: add defaulting wrapper for recvfrom

This commit is contained in:
Danny Robson 2018-07-27 21:06:25 +10:00
parent d99b257268
commit 1b92ac5f61

View File

@ -60,6 +60,10 @@ namespace util::posix {
template <typename ByteT>
util::view<ByteT*> recvfrom (util::view<ByteT*> buffer, int flags);
template <typename ByteT>
auto recvfrom (util::view<ByteT*> buffer)
{ return recvfrom (buffer, 0); }
template <typename ValueT>
void setoption (int _level, int _name, const ValueT &_value)
{