mirror of https://github.com/vacp2p/nim-quic.git
Move datagram one level up
This commit is contained in:
parent
e03ba54b00
commit
d390d3660f
|
@ -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 =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import stew/endians2
|
||||
import ../bits
|
||||
import ../varints
|
||||
import datagram
|
||||
import ../datagram
|
||||
import packet
|
||||
import reader
|
||||
export reader
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ../datagram
|
||||
import packet
|
||||
import datagram
|
||||
|
||||
type
|
||||
PacketReader* = object
|
||||
|
|
|
@ -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) =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import packet
|
||||
import datagram
|
||||
import ../datagram
|
||||
import ../openarray
|
||||
import packet
|
||||
|
||||
type
|
||||
PacketWriter* = object
|
||||
|
|
Loading…
Reference in New Issue