From c1f512a7fe08ef8989e489456db3e4444036e02d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 27 Aug 2024 14:42:13 +0200 Subject: [PATCH] add some imports --- examples/python-interop/main.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/examples/python-interop/main.py b/examples/python-interop/main.py index cd9ac48..12310b1 100755 --- a/examples/python-interop/main.py +++ b/examples/python-interop/main.py @@ -1,3 +1,36 @@ +import socket +import select +import logging +import time +from threading import Thread +from typing import Tuple, Optional +from multiprocessing import Queue +from queue import Empty + +from cfdppy import PacketDestination, PutRequest, get_packet_destination, CfdpState +from cfdppy.mib import ( + CheckTimerProvider, + DefaultFaultHandlerBase, + EntityType, + IndicationCfg, + RemoteEntityCfg, +) +from spacepackets.cfdp.pdu import AbstractFileDirectiveBase, PduFactory, PduHolder +from spacepackets.util import ByteFieldU16, UnsignedByteField + +_LOGGER = logging.getLogger(__name__) + + +LOCAL_ENTITY_ID = ByteFieldU16(1) +REMOTE_ENTITY_ID = ByteFieldU16(2) +# Enable all indications for both local and remote entity. +INDICATION_CFG = IndicationCfg() + +FILE_CONTENT = "Hello World!\n" +FILE_SEGMENT_SIZE = 256 +MAX_PACKET_LEN = 512 + + def main(): pass