mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 17:15:09 -04:00
Better encapsulation
This commit is contained in:
parent
24c670c07c
commit
048c5c445d
@ -73,6 +73,10 @@ struct layer {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
network::udp::layer* parent;
|
network::udp::layer* parent;
|
||||||
|
|
||||||
|
std::atomic<bool> listening;
|
||||||
|
circular_buffer<network::ethernet::packet, 16> packets;
|
||||||
|
condition_variable listen_queue;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end of dns namespace
|
} // end of dns namespace
|
||||||
|
@ -18,10 +18,6 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
std::atomic<bool> listening;
|
|
||||||
circular_buffer<network::ethernet::packet, 16> packets;
|
|
||||||
condition_variable listen_queue;
|
|
||||||
|
|
||||||
void prepare_packet(network::ethernet::packet& packet, network::interface_descriptor& interface) {
|
void prepare_packet(network::ethernet::packet& packet, network::interface_descriptor& interface) {
|
||||||
packet.tag(3, packet.index);
|
packet.tag(3, packet.index);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user