/src/pistache/src/common/tcp.cc
Line | Count | Source |
1 | | /* |
2 | | * SPDX-FileCopyrightText: 2015 Mathieu Stefani |
3 | | * |
4 | | * SPDX-License-Identifier: Apache-2.0 |
5 | | */ |
6 | | |
7 | | /* tcp.cc |
8 | | Mathieu Stefani, 05 novembre 2015 |
9 | | |
10 | | TCP |
11 | | */ |
12 | | |
13 | | #include <pistache/peer.h> |
14 | | #include <pistache/tcp.h> |
15 | | |
16 | | namespace Pistache::Tcp |
17 | | { |
18 | | |
19 | | Handler::Handler() |
20 | 0 | : transport_(nullptr) |
21 | 0 | { } |
22 | | |
23 | 0 | Handler::~Handler() = default; |
24 | | |
25 | | void Handler::associateTransport(Transport* transport) |
26 | 0 | { |
27 | 0 | transport_ = transport; |
28 | 0 | } |
29 | | |
30 | | void Handler::onConnection(const std::shared_ptr<Tcp::Peer>& /*peer*/) |
31 | 0 | { } |
32 | | |
33 | | void Handler::onDisconnection(const std::shared_ptr<Tcp::Peer>& /*peer*/) |
34 | 0 | { } |
35 | | |
36 | | } // namespace Pistache::Tcp |