From 39921daf83d2db6c12a9acba2e6a7cc0030ec63e Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 26 Aug 2020 21:39:17 +0200 Subject: [PATCH] adapt examples to 7d2a92346d53bf7380a5080fb671bc3d26ebffad --- examples/app/app.nim | 6 +++--- examples/rendezvous_server/rendezvous_server.nim | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/app/app.nim b/examples/app/app.nim index a9e8a33..879bad6 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -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 diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index bda148a..ed914d4 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -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