Airframe Application Utilities
libairframe 0.7.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

mio_source_tcp.h

Go to the documentation of this file.
00001 /*
00002  ** mio_source_tcp.c
00003  ** Multiple I/O passive TCP stream source
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2006 Carnegie Mellon University. All Rights Reserved.
00007  ** ------------------------------------------------------------------------
00008  ** Authors: Brian Trammell <bht@cert.org>
00009  ** ------------------------------------------------------------------------
00010  ** GNU Lesser GPL Rights pursuant to Version 2.1, February 1999 
00011  ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013
00012  ** ------------------------------------------------------------------------
00013  */
00014   
00022 /* idem hack */
00023 #ifndef _AIRFRAME_MIO_SOURCE_TCP_H_
00024 #define _AIRFRAME_MIO_SOURCE_TCP_H_
00025 #include <airframe/mio.h>
00026 
00032 typedef struct _MIOSourceTCPConfig {
00034     char            *default_port;
00041     struct timeval  timeout;
00042 } MIOSourceTCPConfig;
00043 
00067 gboolean mio_source_init_tcp(
00068     MIOSource       *source,
00069     const char      *spec,
00070     MIOType         vsp_type,
00071     void            *cfg,
00072     GError          **err);
00073     
00074 /* end idem */
00075 #endif