-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry.h
More file actions
37 lines (27 loc) · 789 Bytes
/
entry.h
File metadata and controls
37 lines (27 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Created by yc chow on 2020/11/23.
//
#ifndef ENTRY_H
#define ENTRY_H
#include "nkn_local.h"
#include "tuna.h"
class entry : virtual public tuna {
public:
entry(boost::asio::io_context &io_context, const tcp::endpoint &from, const string &seed,
vector<shared_ptr<node_info>> nis, bool *stop);
~entry();
void run();
private:
void do_accept();
//void async_choose_local(std::function<void(std::shared_ptr<nkn_Local>)> f);
private:
//boost::asio::io_service &context_;
//tcp::socket socket_;
//tcp::endpoint from_endpoint_;
//tcp::endpoint to_endpoint_;
tcp::acceptor acceptor_;
// std::vector<std::weak_ptr<nkn_Local>> locals_;
// shared_ptr<Wallet::Wallet> wallet_;
// shared_ptr<node_info> ni_;
};
#endif //ENTRY_H