$Id: README,v 1.5 2003/03/14 09:17:04 mkirchner Exp $ -=[ tcping README This software may be freely distributed under the terms of the GNU General Public License (GPL). THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --=[ How to build On LiNUX systems: make tcping.linux On OpenBSD: make tcping.openbsd On Solaris 7/8: make tcping.solaris On Solaris 2.6: make tcping.solaris26 -=[ Return values Return values to the shell are: -1 an error occured 0 port is open 1 port is closed 2 connection establishment timed out -=[ Note Non-blocking connetcs are one of the most non-portable areas of network programming. Hope for the best. -=[ Acknowledgements 2003-03-14 Vincent Loriot pointed out some include file ordering problem on OpenBSD. (Heck, I did not even know, this code compiles on OpenBSD. :-) Thanks! -=[ Author notes If you happen to find any bugs or you have improved my code, please be so kind to drop me a line. Thank you. Marc Kirchner