Move datagram one level up

This commit is contained in:
Mark Spanbroek 2020-10-28 13:41:32 +01:00 committed by markspanbroek
parent e03ba54b00
commit d390d3660f
6 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
import packets/datagram
import packets/packet import packets/packet
import packets/length import packets/length
import packets/read import packets/read
import packets/write import packets/write
export datagram import datagram
export packet export packet
export length export length
export datagram
include noerrors include noerrors
proc read(reader: var PacketReader, datagram: Datagram): Packet = proc read(reader: var PacketReader, datagram: Datagram): Packet =

View File

@ -1,7 +1,7 @@
import stew/endians2 import stew/endians2
import ../bits import ../bits
import ../varints import ../varints
import datagram import ../datagram
import packet import packet
import reader import reader
export reader export reader

View File

@ -1,5 +1,5 @@
import ../datagram
import packet import packet
import datagram
type type
PacketReader* = object PacketReader* = object

View File

@ -1,10 +1,10 @@
import stew/endians2 import stew/endians2
import datagram import ../datagram
import ../bits
import ../varints
import packet import packet
import packetnumber import packetnumber
import writer import writer
import ../bits
import ../varints
export writer export writer
proc writeForm*(writer: var PacketWriter, datagram: var Datagram) = proc writeForm*(writer: var PacketWriter, datagram: var Datagram) =

View File

@ -1,6 +1,6 @@
import packet import ../datagram
import datagram
import ../openarray import ../openarray
import packet
type type
PacketWriter* = object PacketWriter* = object