mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
458 B
C++
27 lines
458 B
C++
#include "ev.hpp"
|
|
#include <llarp/util/mem.hpp>
|
|
#include <llarp/util/str.hpp>
|
|
|
|
#include <cstddef>
|
|
#include <cstring>
|
|
#include <string_view>
|
|
|
|
#include "libuv.hpp"
|
|
#include <llarp/net/net.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
EventLoop_ptr
|
|
EventLoop::create(size_t queueLength)
|
|
{
|
|
return std::make_shared<llarp::uv::Loop>(queueLength);
|
|
}
|
|
|
|
const net::Platform*
|
|
EventLoop::Net_ptr() const
|
|
{
|
|
return net::Platform::Default_ptr();
|
|
}
|
|
|
|
} // namespace llarp
|