{"repo":"silverwind/tcpie","free":true,"listed":false,"github":"https://github.com/silverwind/tcpie","clone":"git clone https://github.com/silverwind/tcpie.git","description":"CLI tool to ping any TCP port","language":"JavaScript","stars":52,"topics":["cli","nodejs","network-test","port-scanner","port-test"],"license":"BSD-2-Clause","category":"cli-tools","readme_excerpt":"tcpie Ping any TCP port tcpie is a tool to measure latency and verify the reliabilty of a TCP connection. It does so by initiating a handshake followed by an immediately termination of the socket. While many existing tools require raw socket access, tcpie runs fine in user space. An API for use as a module is also provided. CLI Installation Example API Usage tcpie(host, [port], [options]) - host string : the destination host name or IP address. Required. - port number : the destination port. Default: 22 . - opts object : options for count, interval and timeout. Defaults: Infinity , 1000 , 3000 . tcpie#start() Start connecting tcpie#stop() Stops connecting options object - count number : the number of connection attempts in milliseconds (default: Infinity). - interval number : the interval between connection attempts in milliseconds (default: 1000). - timeout number : the connection timeout in milliseconds (default: 3000). Events - connect : Arguments: stats . Connection attempt succeeded. - timeout : Arguments: stats . Connection attempt ran into the timeout. - error : Arguments: err , stats . Connection attempt failed. - end : Arguments: stats . All connection attempts have finished. stats argument properties - sent number : number of total attempts made. - success number : number of successfull attempts. - failed number : number of failed attempts. - target object : target details: host and port . The following properties are present on all events except end : - rtt number ","default_branch":null,"files":null,"tree":[],"storefront":"/r/silverwind","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/silverwind/tcpie/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}