Island: Add tcp_connections to node

This commit is contained in:
vakarisz 2022-10-03 17:59:17 +03:00
parent 80a095b657
commit a390c97b70
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from pydantic import Field
from typing_extensions import TypeAlias from typing_extensions import TypeAlias
from common.base_models import MutableInfectionMonkeyBaseModel from common.base_models import MutableInfectionMonkeyBaseModel
from common.types import SocketAddress
from . import CommunicationType, MachineID from . import CommunicationType, MachineID
@ -24,3 +25,6 @@ class Node(MutableInfectionMonkeyBaseModel):
connections: NodeConnections connections: NodeConnections
"""All outbound connections from this node to other machines""" """All outbound connections from this node to other machines"""
tcp_connections: Mapping[MachineID, FrozenSet[SocketAddress]] = {}
"""All successfull outbound TCP connections"""