2022-02-24 07:03:50 +00:00
|
|
|
from typing import TYPE_CHECKING, Protocol
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
import socket
|
2022-02-16 06:49:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Peer(Protocol):
|
|
|
|
stats = {}
|
|
|
|
sock = None
|
|
|
|
id = ""
|
|
|
|
node_address = ""
|
|
|
|
|
2022-02-10 01:29:16 +00:00
|
|
|
def __init__(self):
|
|
|
|
return
|
2022-02-24 07:03:50 +00:00
|
|
|
def get_socket(self) -> 'socket.socket':
|
2022-02-10 01:29:16 +00:00
|
|
|
return
|
|
|
|
|
2022-02-16 06:49:32 +00:00
|
|
|
def disconnect(self):
|
|
|
|
return
|