posix/socket: add defaulting wrapper for recvfrom
This commit is contained in:
parent
d99b257268
commit
1b92ac5f61
@ -60,6 +60,10 @@ namespace util::posix {
|
|||||||
template <typename ByteT>
|
template <typename ByteT>
|
||||||
util::view<ByteT*> recvfrom (util::view<ByteT*> buffer, int flags);
|
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>
|
template <typename ValueT>
|
||||||
void setoption (int _level, int _name, const ValueT &_value)
|
void setoption (int _level, int _name, const ValueT &_value)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user