src/vfer_rcp.h File Reference

Header file of common structures and globals defs for use by vfer_rcp.c and vfer_rcpd.c. More...

#include <netdb.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <getopt.h>
#include <strings.h>
#include <pwd.h>
#include <signal.h>
#include <dirent.h>
#include "vfer_tests.h"
#include "vfer_api.h"

Go to the source code of this file.

Data Structures

struct  client_msg
 structure used as a client message from the client rcp program More...
struct  server_msg
 structure used as a server message reply from the server rcpd program to the client msg More...

Defines

#define DEFAULT_PORT   2046
#define MAX_HOST   64
#define MAX_PATH   128
#define MAX_USER   16

Typedefs

typedef client_msg client_msg_t
 structure used as a client message from the client rcp program
typedef server_msg server_msg_t
 structure used as a server message reply from the server rcpd program to the client msg

Enumerations

enum  status_t {
  RCP_READY = 0, RCP_ENOENT, RCP_EOPEN, RCP_ENOFILE,
  RCP_EUSER, RCP_EOTHER
}

Functions

void vfer_rcp_print_stats (vfer_stats *stats)


Detailed Description

Header file of common structures and globals defs for use by vfer_rcp.c and vfer_rcpd.c.

Author:
Ivan Beschastnikh
This file is the only file included by vfer_rcpd.c and vfer_rcp.c. It contains the structures, defs and other include files for the rcp daemon and client.

Definition in file vfer_rcp.h.


Define Documentation

#define DEFAULT_PORT   2046

Definition at line 44 of file vfer_rcp.h.

#define MAX_HOST   64

Definition at line 43 of file vfer_rcp.h.

#define MAX_PATH   128

Definition at line 41 of file vfer_rcp.h.

#define MAX_USER   16

Definition at line 42 of file vfer_rcp.h.


Typedef Documentation

typedef struct client_msg client_msg_t

structure used as a client message from the client rcp program

typedef struct server_msg server_msg_t

structure used as a server message reply from the server rcpd program to the client msg


Enumeration Type Documentation

enum status_t

Enumerator:
RCP_READY 
RCP_ENOENT 
RCP_EOPEN 
RCP_ENOFILE 
RCP_EUSER 
RCP_EOTHER 

Definition at line 57 of file vfer_rcp.h.


Function Documentation

void vfer_rcp_print_stats ( vfer_stats stats  )  [inline]

This function prints the final transfer statistics after file transfer

Parameters:
stats vfer stats structure pointer

Definition at line 78 of file vfer_rcp.h.


Generated on Tue Aug 8 16:07:22 2006 for VFER by  doxygen 1.4.7