adapt examples to 7d2a92346d

This commit is contained in:
Christian Ulrich 2020-08-26 21:39:17 +02:00
parent 7b4f3b790e
commit 39921daf83
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ type
# Server messages
OkGetPeerinfo* = object
ip: string
ports: array[3, uint16]
ports: seq[uint16]
OkGetEndpoint* = object
ip: IpAddress
port: Port
@ -45,9 +45,9 @@ type
recipient: string
command: string
srcIp: IpAddress
srcPorts: array[3, Port]
srcPorts: seq[Port]
dstIp: IpAddress
dstPorts: array[3, Port]
dstPorts: seq[Port]
seqNumbers: seq[uint32]
# Exceptions

View File

@ -9,13 +9,13 @@ type
Client = object
sock: AsyncSocket
ip: IpAddress
ports: array[3, Port]
ports: seq[Port]
# Requests
Register = object
peerId: string
ip: IpAddress
ports: array[3, Port]
ports: seq[Port]
GetPeerinfo = object
peerId: string