very simple Perl 6 function to test if a TCP socket is listening on a given address
Switch branches/tags
Clone or download
Latest commit 24cfb86 Nov 4, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Make the test with a numeric IP todo pending v6 weird Mar 22, 2016
t Make the test with a numeric IP todo pending v6 weird Mar 22, 2016
.gitignore Add .precomp to .gitignore Dec 17, 2015
.travis.yml Add Travis config Oct 16, 2015
Changes Add changes Nov 4, 2017
LICENCE rename LICENCE as en_GB May 30, 2016
META6.json Fix licence Apr 22, 2017
README.md No panda Aug 22, 2017

README.md

CheckSocket

A very simple Perl 6 function to test if a TCP socket is listening on a given address.

Description

This module provides a very simple mechanism to determine whether something is listening on a TCP socket at the given port and address. This is primarly for the convenience of testing where there may be a dependency on an external network service. For example:

 use Test;
 use CheckSocket;

 if not check-socket(80, "localhost") {
      skip-all "no web server";
     exit;
 }

Installation

You can install directly with "zef":

# From the source directory

zef install .

# Remote installation

zef install CheckSocket

Support

Suggestions/patches are welcomed via github at

https://github.com/jonathanstowe/CheckSocket/issues

Licence

Please see the LICENCE file in the distribution

(C) Jonathan Stowe 2015, 2016, 2017