ftp.c File Reference

Check the server for greeting code 220 and then send a QUIT and check for code 221. More...

Go to the source code of this file.

Functions

int check_ftp (Port_T p)


Detailed Description

Check the server for greeting code 220 and then send a QUIT and check for code 221.

If alive return TRUE, else, return FALSE.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com> , Michael Amster, <mamster@webeasy.com>
Version:
$Id: ftp.c,v 1.8 2002/12/21 13:56:04 hauk Exp $

Definition in file ftp.c.


Function Documentation

int check_ftp Port_T    p
 

Definition at line 42 of file ftp.c.

References ASSERT, chomp(), log(), port_recv(), port_send(), and STRERROR.