This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tcp_receiver.py - Simple receiver for 5G modem simulation | |
import socket | |
import threading | |
import time | |
from time import perf_counter # monotonic high‑res timing | |
from threading import Lock | |
# Global aggregated stats (kept simple) | |
_stats_lock = Lock() | |
_stats = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.OutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.InputMismatchException; | |
import java.io.IOException; | |
import java.io.InputStream; | |