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