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

tcptxthandler.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "bits_n_bytes.h"
#include "url.h"
#include "tcptxthandler.h"

Functions

aw_tcptxthandler_t * aw_create_tcptxthandler (const aw_tcptxthandler_events_t *events, const byte_t *url, const u_int32_t default_port, const byte_t *cmd, const byte_t *regexp, 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 tcptxt handler.

void aw_free_tcptxthandler (aw_tcptxthandler_t *h)
 Free handler and all associated resources.

int32_t aw_init_tcptxthandler (aw_tcptxthandler_t *h, const aw_tcptxthandler_events_t *events, const byte_t *url, const u_int32_t default_port, const byte_t *cmd, const byte_t *regexp, 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)
 Init a tcptxt handler.

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

aw_handler_t * aw_wire_tcptxthandler_wrapper (const u_int32_t default_port, const byte_t *cmd, const byte_t *regexp, aw_wire_mkhandler_args_t *args)
 Create a tcptxt handler from a wrapper (e.g., ftp) using "wire". See header doc for keyword documentation.


Function Documentation

aw_tcptxthandler_t* aw_create_tcptxthandler (  const aw_tcptxthandler_events_t *  events,
const byte_t *  url,
const u_int32_t  default_port,
const byte_t *  cmd,
const byte_t *  regexp,
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 tcptxt handler.

aw_create_tcptxthandler

Parameters:
events Events to generate
url Url (gives us host and port)
default_port Port used if none supplied in url
cmd Command to execute
regexp Regex string to match
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_tcptxthandler (  aw_tcptxthandler_t *  p  ) 
 

Free handler and all associated resources.

aw_free_tcptxthandler

Parameters:
p The handler

int32_t aw_init_tcptxthandler (  aw_tcptxthandler_t *  h,
const aw_tcptxthandler_events_t *  events,
const byte_t *  url,
const u_int32_t  default_port,
const byte_t *  cmd,
const byte_t *  regexp,
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
) 
 

Init a tcptxt handler.

aw_init_tcptxthandler

Parameters:
h Handler
events Events to generate
url Url (gives us host and port)
default_port Port used if none supplied in url
cmd Command to execute
regexp Regex string to match
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:
Non-zero on error

aw_handler_t* aw_wire_tcptxthandler (  aw_wire_mkhandler_args_t *  args  ) 
 

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

aw_wire_tcptxthandler

aw_handler_t* aw_wire_tcptxthandler_wrapper (  const u_int32_t  default_port,
const byte_t *  cmd,
const byte_t *  regexp,
aw_wire_mkhandler_args_t *  args
) 
 

Create a tcptxt handler from a wrapper (e.g., ftp) using "wire". See header doc for keyword documentation.

aw_wire_tcptxthandler_wrapper

Parameters:
default_port Port used if none supplied in url
cmd Command to execute
regexp Regex string to match
args Std wire args

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