added net module
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include "matador/net/address_resolver.hpp"
|
||||
|
||||
namespace matador {
|
||||
namespace detail {
|
||||
|
||||
template<>
|
||||
int determine_socktype<tcp>()
|
||||
{
|
||||
return SOCK_STREAM;
|
||||
}
|
||||
|
||||
template<>
|
||||
int determine_socktype<udp>()
|
||||
{
|
||||
return SOCK_DGRAM;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user