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

tcphandler.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "tcphandler.h"

Functions

aw_tcphandler_t * aw_create_tcphandler (const aw_tcphandler_events_t *events, const byte_t *hostname, u_int32_t port, 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 tcp handler.

void aw_free_tcphandler (aw_tcphandler_t *h)
 Free handler and all associated resources.

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


Function Documentation

aw_tcphandler_t* aw_create_tcphandler (  const aw_tcphandler_events_t *  events,
const byte_t *  hostname,
u_int32_t  port,
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 tcp handler.

aw_create_tcphandler

Parameters:
events Events to generate
hostname Hostname or dotted IP string
port 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_tcphandler (  aw_tcphandler_t *  p  ) 
 

Free handler and all associated resources.

aw_free_tcphandler

Parameters:
p The handler

aw_handler_t* aw_wire_tcphandler (  aw_wire_mkhandler_args_t *  args  ) 
 

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

aw_wire_tcphandler

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