2020-11-30 14:29:40 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Copyright (c) 2020 tecnovert
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
'''
|
|
|
|
TODO:
|
|
|
|
'''
|
|
|
|
|
2020-11-30 17:07:55 +00:00
|
|
|
|
2020-11-30 14:29:40 +00:00
|
|
|
class Peer:
|
|
|
|
pass
|
2020-12-02 11:24:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Network:
|
2020-12-03 23:46:01 +00:00
|
|
|
def __init__(self, p2p_port, network_key):
|
|
|
|
self._p2p_port = p2p_port
|
2020-12-02 11:24:52 +00:00
|
|
|
self._network_key = network_key
|
|
|
|
self._peers = []
|