2019-09-13 09:33:40 +02:00
|
|
|
"""
|
2019-11-03 16:11:52 +01:00
|
|
|
Named tuples representing the network peers
|
2019-09-13 09:33:40 +02:00
|
|
|
"""
|
2017-05-24 16:51:49 +02:00
|
|
|
import collections
|
2017-04-16 18:27:15 +02:00
|
|
|
|
2019-11-03 16:11:52 +01:00
|
|
|
Peer = collections.namedtuple('Peer', ['host', 'port'])
|
2017-05-24 16:51:49 +02:00
|
|
|
Node = collections.namedtuple('Node', ['services', 'host', 'port'])
|