adapt examples to 7d2a92346d
This commit is contained in:
parent
7b4f3b790e
commit
39921daf83
|
@ -36,7 +36,7 @@ type
|
||||||
# Server messages
|
# Server messages
|
||||||
OkGetPeerinfo* = object
|
OkGetPeerinfo* = object
|
||||||
ip: string
|
ip: string
|
||||||
ports: array[3, uint16]
|
ports: seq[uint16]
|
||||||
OkGetEndpoint* = object
|
OkGetEndpoint* = object
|
||||||
ip: IpAddress
|
ip: IpAddress
|
||||||
port: Port
|
port: Port
|
||||||
|
@ -45,9 +45,9 @@ type
|
||||||
recipient: string
|
recipient: string
|
||||||
command: string
|
command: string
|
||||||
srcIp: IpAddress
|
srcIp: IpAddress
|
||||||
srcPorts: array[3, Port]
|
srcPorts: seq[Port]
|
||||||
dstIp: IpAddress
|
dstIp: IpAddress
|
||||||
dstPorts: array[3, Port]
|
dstPorts: seq[Port]
|
||||||
seqNumbers: seq[uint32]
|
seqNumbers: seq[uint32]
|
||||||
|
|
||||||
# Exceptions
|
# Exceptions
|
||||||
|
|
|
@ -9,13 +9,13 @@ type
|
||||||
Client = object
|
Client = object
|
||||||
sock: AsyncSocket
|
sock: AsyncSocket
|
||||||
ip: IpAddress
|
ip: IpAddress
|
||||||
ports: array[3, Port]
|
ports: seq[Port]
|
||||||
|
|
||||||
# Requests
|
# Requests
|
||||||
Register = object
|
Register = object
|
||||||
peerId: string
|
peerId: string
|
||||||
ip: IpAddress
|
ip: IpAddress
|
||||||
ports: array[3, Port]
|
ports: seq[Port]
|
||||||
|
|
||||||
GetPeerinfo = object
|
GetPeerinfo = object
|
||||||
peerId: string
|
peerId: string
|
||||||
|
|
Loading…
Reference in New Issue