Task: Monitor TCP/UDP Port Activity Without Binding
Task: Monitor TCP/UDP Port Activity Without Binding: a task in Terminal-Lego-15k (Harbor dataset). Write a Python program that monitors network activity (both TCP and UDP) on a specified port without binding to that port. The monitor should detect when packets arrive on a given port so that an…
The task
Write a Python program that monitors network activity (both TCP and UDP) on a specified port **without** binding to that port. The monitor should detect when packets arrive on a given port so that an external process already listening on that port can be paused/resumed based on network activity.
Part of PrimeIntellect/Terminal-Lego-15k.