Skip to content

Releases: GyulyVGC/listeners

v0.5.1

02 Mar 22:41

Choose a tag to compare

Fixed

  • Include build.rs in the published crate to allow correct compilation on BSD-based systems

v0.5.0

02 Mar 22:39

Choose a tag to compare

Added

  • OpenBSD and NetBSD support (#39)

Changed

  • Update process name retrieval on Windows for improved performance (#43 — fixes #42)
  • Update benchmarks to be even more comprehensive: test multiple processes each listening on multiple ports (#41 — fixes #35)

Fixed

  • Use more loose version requirements to avoid dependency conflicts in projects using this library

Thanks to:

  • @antoncxx for adding OpenBSD and NetBSD support, and improving Windows performance

v0.4.0

14 Feb 17:03

Choose a tag to compare

Added

  • FreeBSD support (#32)
  • New API get_process_by_port to efficiently get the process listening on a specific port and protocol (#34 — fixes #25)
  • IS_OS_SUPPORTED constant to check if the consumer platform is supported by the library
  • Benchmarks on all supported platforms, which helped to considerably improve this library performance (#31)

Changed

  • Only open one ProcFd at a time on Linux (#30)

Removed

  • get_ports_by_pid, get_ports_by_process_name, and get_processes_by_port, since they were not optimized because internally simply based on get_all

Thanks to:

  • @antoncxx for adding FreeBSD support
  • @tgockel for improving iteration over Linux ProcFds
  • @lxl66566 for making me aware of performance issues on Windows (#25 — now fixed)

v0.3.0

02 Aug 07:40

Choose a tag to compare

Added

  • Added path field to Process struct, making it possible to obtain the executables' full path (#23)
  • New Protocol enum
  • Added protocol field to Listener struct, indicating whether the listener uses TCP or UDP

Changed

  • The library now retrieves all the processes listening on TCP/UDP sockets, instead of just the TCP-based ones in LISTEN state (#13 — fixes #5)

Thanks to:

  • @islameehassan for extending the library to support both TCP and UDP

v0.2.1

12 Jul 10:48

Choose a tag to compare

Fixed

  • Linux permission denied issue (#10 — fixes #9)

Thanks to:

v0.2.0

27 Mar 17:21
bb7ec89

Choose a tag to compare

Added

  • New APIs to get the listening processes in a more granular way
    • get_ports_by_pid
    • get_ports_by_process_name
    • get_processes_by_port
  • New Process struct to represent a process identified by its PID and name

Changed

  • Listener struct now has a process field of type Process, which takes place of the old fields pid and name

v0.1.0

14 Mar 12:28

Choose a tag to compare

Added

  • get_all API to get all the listening processes
  • Support for Windows, Linux and macOS