BSD Ports

net/py-portend 3.2.1 NetBSD

TCP port monitoring utilities

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
net, python
Package size
10.3 KiB, 33.3 KiB installed

Description

Use portend to monitor TCP ports for bound or unbound states.

For example, to wait for a port to be occupied, timing out after 3 seconds::

portend.occupied('www.pkgsrc.org', 80, timeout=3)

Or to wait for a port to be free, timing out after 5 seconds::

portend.free('::1', 80, timeout=5)

The portend may also be executed directly. If the function succeeds, it returns nothing and exits with a status of 0. If it fails, it prints a message and exits with a status of 1. For example::

python -m portend localhost:31923 free
(exits immediately)

python -m portend -t 1 localhost:31923 occupied
(one second passes)
Port 31923 not bound on localhost.

In the other systems

SystemPortVersion
NetBSDnet/py-portend3.2.1
FreeBSDnet/py-portend3.2.1
OpenBSDnet/py-portend3.2.1p1
DragonFlynet/py-portend2.5_2
MidnightBSDnet/py-portend2.5_2
HardenedBSDnet/py-portend3.2.1
GhostBSDnet/py-portend2.5_2

Install

Binary package:

pkgin install py311-portend

From pkgsrc:

cd /usr/pkgsrc/net/py-portend && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_643.2.1
NetBSD 10.1 aarch643.2.1
SmartOS / illumos x86_643.2.1
macOS 15 arm643.2.1

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
py312-portend-3.2.1, py313-portend-3.2.1, py314-portend-3.2.1