change type order (cosmetic)
This commit is contained in:
parent
f22bd5eacc
commit
ebcab0fd74
|
@ -6,6 +6,12 @@ import ../../message
|
||||||
# connect from our LAN
|
# connect from our LAN
|
||||||
|
|
||||||
type
|
type
|
||||||
|
Client = object
|
||||||
|
sock: AsyncSocket
|
||||||
|
ip: IpAddress
|
||||||
|
ports: array[3, Port]
|
||||||
|
|
||||||
|
# Requests
|
||||||
Register = object
|
Register = object
|
||||||
peerId: string
|
peerId: string
|
||||||
ip: IpAddress
|
ip: IpAddress
|
||||||
|
@ -19,11 +25,6 @@ type
|
||||||
recipient: string
|
recipient: string
|
||||||
data: string
|
data: string
|
||||||
|
|
||||||
Client = object
|
|
||||||
sock: AsyncSocket
|
|
||||||
ip: IpAddress
|
|
||||||
ports: array[3, Port]
|
|
||||||
|
|
||||||
proc removeClient(clients: TableRef[string, Client], peerId: string) =
|
proc removeClient(clients: TableRef[string, Client], peerId: string) =
|
||||||
if peerId.len > 0: clients.del(peerId)
|
if peerId.len > 0: clients.del(peerId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue