#1916: Setting up a connected states + added tests + error states for if service is interacted with when not running

This commit is contained in:
Czar.Echavez
2023-09-22 15:38:01 +01:00
parent 58edb6d3e4
commit 2c234ab67a
5 changed files with 117 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
from enum import Enum
from typing import Any
from typing import Any, Optional
from primaite.simulator.network.protocols.packet import DataPacket
@@ -48,7 +48,7 @@ class FTPPacket(DataPacket):
ftp_command: FTPCommand
"""Command type of the packet."""
ftp_command_args: Any
ftp_command_args: Optional[Any] = None
"""Arguments for command."""
status_code: FTPStatusCode = None