netgauze_bgp_speaker/lib.rs
1// Copyright (C) 2023-present The NetGauze Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12// implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16use tokio::net::TcpStream;
17use tokio_util::codec::Framed;
18
19use netgauze_bgp_pkt::codec::BgpCodec;
20
21pub type BgpFramed = Framed<TcpStream, BgpCodec>;
22
23pub mod connection;
24pub mod events;
25pub mod fsm;
26pub mod listener;
27pub mod peer;
28pub mod peer_controller;
29pub mod supervisor;
30
31#[cfg(test)]
32mod tests;