Page MenuHomeDevCentral

Determine if a TCP port is open
ClosedPublic

Authored by dereckson on Jul 4 2023, 21:09.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 13:38
Unknown Object (File)
Mon, Dec 9, 00:50
Unknown Object (File)
Nov 23 2024, 03:47
Unknown Object (File)
Nov 23 2024, 03:36
Unknown Object (File)
Nov 22 2024, 22:55
Unknown Object (File)
Nov 17 2024, 17:11
Unknown Object (File)
Nov 17 2024, 16:52
Unknown Object (File)
Nov 17 2024, 12:50
Subscribers
None

Details

Summary

Create SocketAddress as a representation of a protocol, IP, port set.

Make IP, IPv4 and IPv6 a hierarchy of object representing IP addresses.

Use the Socket extension, but fallback to fsockopen if it's not available.

Use case: cache library keruald/cache tests suite needs to test if
a memcached or Redis instance is available on localhost to run those tests.

Test Plan

Tested on keruald/cache draft implementation

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningomnitools/src/Network/Port.php:20PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningomnitools/src/Network/SocketAddress.php:62PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningomnitools/src/Network/SocketAddress.php:69PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningomnitools/src/Network/SocketAddress.php:70PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Unit
Tests Passed
Branch
main
Build Status
Buildable 5095
Build 5376: arc lint + arc unit