Page MenuHomeDevCentral

Determine if a TCP port is open
ClosedPublic

Authored by dereckson on Jul 4 2023, 21:09.
Tags
None
Referenced Files
F3313050: D3230.diff
Fri, Jul 5, 16:48
Unknown Object (File)
Thu, Jul 4, 08:15
Unknown Object (File)
Thu, Jul 4, 05:36
Unknown Object (File)
Thu, Jul 4, 04:52
Unknown Object (File)
Thu, Jul 4, 04:31
Unknown Object (File)
Wed, Jul 3, 09:53
Unknown Object (File)
Sat, Jun 29, 07:05
Unknown Object (File)
Sat, Jun 29, 02:06
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:63PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningomnitools/src/Network/SocketAddress.php:70PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningomnitools/src/Network/SocketAddress.php:71PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Unit
Tests Passed
Branch
main
Build Status
Buildable 5094
Build 5375: arc lint + arc unit