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/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 =
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import ../datagram
|
||||||
import packet
|
import packet
|
||||||
import datagram
|
|
||||||
|
|
||||||
type
|
type
|
||||||
PacketReader* = object
|
PacketReader* = object
|
||||||
|
|
|
@ -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) =
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import packet
|
import ../datagram
|
||||||
import datagram
|
|
||||||
import ../openarray
|
import ../openarray
|
||||||
|
import packet
|
||||||
|
|
||||||
type
|
type
|
||||||
PacketWriter* = object
|
PacketWriter* = object
|
||||||
|
|
Loading…
Reference in New Issue