Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

ftphandler.c File Reference

#include <stdlib.h>
#include "ftphandler.h"

Defines

#define CMD   "QUIT\r\n"
#define DEFAULT_PORT   21
#define REGEXP   "^221"

Functions

aw_ftphandler_t * aw_create_ftphandler (const aw_ftphandler_events_t *events, const byte_t *url, const aw_timestamp_t timeout, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *logger)
 Create a ftp handler.

void aw_free_ftphandler (aw_ftphandler_t *p)
 Free handler and all associated resources.

aw_handler_t * aw_wire_ftphandler (aw_wire_mkhandler_args_t *args)
 Create a ftp handler using "wire". See header doc for keyword documentation.


Define Documentation

#define CMD   "QUIT\r\n"
 

#define DEFAULT_PORT   21
 

#define REGEXP   "^221"
 


Function Documentation

aw_ftphandler_t* aw_create_ftphandler (  const aw_ftphandler_events_t *  events,
const byte_t *  url,
const aw_timestamp_t  timeout,
int32_t(*  regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
int32_t(*  regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
const aw_alarm_sched_t *  sched,
aw_logger_t *  logger
) 
 

Create a ftp handler.

aw_create_ftphandler

Parameters:
events Events to generate
url Url (gives us host and port)
timeout Max time to run
regevent Function pointer for event registration
regmaskevent Function pointer for event mask registration
sched Run schedule
logger Logger object
Returns:
Handler object

void aw_free_ftphandler (  aw_ftphandler_t *  p  ) 
 

Free handler and all associated resources.

aw_free_ftphandler

Parameters:
p The handler

aw_handler_t* aw_wire_ftphandler (  aw_wire_mkhandler_args_t *  args  ) 
 

Create a ftp handler using "wire". See header doc for keyword documentation.

aw_wire_ftphandler

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)