diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index 9bb71a3..ac25bb7 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -6,6 +6,12 @@ import ../../message # connect from our LAN type + Client = object + sock: AsyncSocket + ip: IpAddress + ports: array[3, Port] + + # Requests Register = object peerId: string ip: IpAddress @@ -19,11 +25,6 @@ type recipient: string data: string - Client = object - sock: AsyncSocket - ip: IpAddress - ports: array[3, Port] - proc removeClient(clients: TableRef[string, Client], peerId: string) = if peerId.len > 0: clients.del(peerId)