in reply to Code Review: Checking open ports.
The way this works, you're not really testing that the services actually are functioning. You're just connecting to the port, which is done at the OS level. So your service could've hung, but as far as you're concerned, it's still alive.
Also, most services have a no-op type function that returns some sort of standard string you can test for. With SMTP, you could 'say hello' by sending 'HELO bob', and expect to get a response. I can't remember the other ones.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Code Review: Checking open ports.
by waswas-fng (Curate) on Jun 09, 2003 at 11:30 UTC | |
|
Re: Re: Code Review: Checking open ports.
by naChoZ (Curate) on Jun 09, 2003 at 12:15 UTC | |
|
Re: Re: Code Review: Checking open ports.
by fsn (Friar) on Jun 09, 2003 at 11:41 UTC |