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.
29 lines
431 B
C++
29 lines
431 B
C++
#ifndef LLARP_API_SERVER_HPP
|
|
#define LLARP_API_SERVER_HPP
|
|
|
|
#include <llarp/ev.h>
|
|
#include <llarp/router.h>
|
|
#include <string>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace api
|
|
{
|
|
struct ServerPImpl;
|
|
|
|
struct Server
|
|
{
|
|
Server(llarp_router* r);
|
|
~Server();
|
|
|
|
bool
|
|
Bind(const std::string& url, llarp_ev_loop* loop);
|
|
|
|
private:
|
|
ServerPImpl* m_Impl;
|
|
};
|
|
|
|
} // namespace api
|
|
} // namespace llarp
|
|
|
|
#endif |