Onionr/src/lan/client/__init__.py

33 lines
1002 B
Python
Raw Normal View History

"""Onionr - Private P2P Communication.
LAN transport client thread
"""
2020-03-23 05:37:49 +00:00
from typing import List
from utils.bettersleep import better_sleep
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
class Client:
2020-03-23 08:39:57 +00:00
def __init__(self):
self.peers = []
return
2020-03-23 05:37:49 +00:00
def start(self):
while True:
2020-03-24 08:18:05 +00:00
#print(1, self.peers, type(self.peers))
2020-03-23 05:37:49 +00:00
better_sleep(1)