diff --git a/quic/packets/datagram.nim b/quic/datagram.nim similarity index 100% rename from quic/packets/datagram.nim rename to quic/datagram.nim diff --git a/quic/packets.nim b/quic/packets.nim index 3ccfc3d..c05b45c 100644 --- a/quic/packets.nim +++ b/quic/packets.nim @@ -1,11 +1,11 @@ -import packets/datagram import packets/packet import packets/length import packets/read import packets/write -export datagram +import datagram export packet export length +export datagram include noerrors proc read(reader: var PacketReader, datagram: Datagram): Packet = diff --git a/quic/packets/read.nim b/quic/packets/read.nim index c2cccd5..1aeb295 100644 --- a/quic/packets/read.nim +++ b/quic/packets/read.nim @@ -1,7 +1,7 @@ import stew/endians2 import ../bits import ../varints -import datagram +import ../datagram import packet import reader export reader diff --git a/quic/packets/reader.nim b/quic/packets/reader.nim index 73b9b62..2360542 100644 --- a/quic/packets/reader.nim +++ b/quic/packets/reader.nim @@ -1,5 +1,5 @@ +import ../datagram import packet -import datagram type PacketReader* = object diff --git a/quic/packets/write.nim b/quic/packets/write.nim index 348c5c3..f975d47 100644 --- a/quic/packets/write.nim +++ b/quic/packets/write.nim @@ -1,10 +1,10 @@ import stew/endians2 -import datagram +import ../datagram +import ../bits +import ../varints import packet import packetnumber import writer -import ../bits -import ../varints export writer proc writeForm*(writer: var PacketWriter, datagram: var Datagram) = diff --git a/quic/packets/writer.nim b/quic/packets/writer.nim index 77c9e26..4079b49 100644 --- a/quic/packets/writer.nim +++ b/quic/packets/writer.nim @@ -1,6 +1,6 @@ -import packet -import datagram +import ../datagram import ../openarray +import packet type PacketWriter* = object