Advanced

Writing a Simple Portcheck program in C Part 3

Posted by jayrfink on · Post a comment
systhread; By Jason (Jay) R Fink
Mail this story
Print this story

In part 1 an examination of creating an ultra simple single port single host port check program was done. In the second part of the series the code was broken out between a header file and source file, input validation added, a usage message defined and a Makefile was setup for simple recompiling. In this part of the series one of the items of the TODO list will be tackled: smaller timeout value for connection test by way of a host pre-check. Which leaves the program with two final TODO items for the next installment:

  1. Breaking up the program functionally
  2. Detailed error handling
  3. Hostname resolution (or not)
  4. Any last minute details...

  Text

In part 1 an examination of creating an ultra simple single port single host port check program was done. In the second part of the series the code was broken out between a header file and source file, input validation added, a usage message defined and a Makefile

was setup for simple recompiling. In this part of the series one of the items of the TODO list will be tackled: smaller timeout value for connection test by way of a host pre-check. Which leaves the program with two final TODO items for the next installment:



  1. Breaking up the program functionally
  2. Detailed error handling
  3. Hostname resolution (or not)
  4. Any last minute details...


  Text

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post