[insert project logo here (125x200px max)]

Navigator

Mailinglists

Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums.

Copyright and Licensing Information

Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL).

All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License.

All sourcecode is made publicly available.

Acknowledgement

Splash and the Splash website are hosted by SourceForge.net

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/src/snap_demux_handler.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Defines

#define SNAP_BUFLEN   3924
#define SNAP_UNIX   0x1
#define SNAP_RAWIP   0x2
#define SNAP_UDP   0x4

Typedefs

typedef void(* buffer_handler )(char *)

Functions

int snap_demux_init (int)
int snap_demux_receive (buffer_handler)
int snap_demux_select ()
void snap_demux_close ()
int snap_demux_handler (buffer_handler)
void snap_demux_buffer_noop (char *)
void snap_demux_buffer_print (char *)
void snap_demux_buffer_print_unsafe (char *)

Variables

short int receiveport

Define Documentation

#define SNAP_BUFLEN   3924
 

Definition at line 6 of file snap_demux_handler.h.

Referenced by snap_demux_receivefrom().

#define SNAP_RAWIP   0x2
 

Definition at line 10 of file snap_demux_handler.h.

Referenced by snap_demux_close(), snap_demux_init(), snap_demux_receive(), and snap_demux_select().

#define SNAP_UDP   0x4
 

Definition at line 11 of file snap_demux_handler.h.

Referenced by main(), snap_demux_close(), snap_demux_init(), snap_demux_receive(), and snap_demux_select().

#define SNAP_UNIX   0x1
 

Definition at line 9 of file snap_demux_handler.h.

Referenced by main(), snap_demux_close(), snap_demux_init(), snap_demux_receive(), and snap_demux_select().


Typedef Documentation

typedef void(* buffer_handler)(char*)
 

Definition at line 14 of file snap_demux_handler.h.

Referenced by main(), snap_demux_handler(), snap_demux_receive(), and snap_demux_receivefrom().


Function Documentation

void snap_demux_buffer_noop char *   
 

Definition at line 132 of file snap_demux_handler.c.

void snap_demux_buffer_print char *   
 

Definition at line 139 of file snap_demux_handler.c.

void snap_demux_buffer_print_unsafe char *   
 

Definition at line 135 of file snap_demux_handler.c.

void snap_demux_close  
 

Definition at line 170 of file snap_demux_handler.c.

References max_filedes, protocols_internal, snap_demux_close_rawip(), snap_demux_close_udp(), snap_demux_close_unix(), SNAP_RAWIP, SNAP_UDP, and SNAP_UNIX.

Referenced by main(), and snap_demux_init().

int snap_demux_handler buffer_handler   
 

Definition at line 297 of file snap_demux_handler.c.

References buffer_handler, snap_demux_receive(), and snap_demux_select().

Referenced by main().

int snap_demux_init int   
 

Definition at line 188 of file snap_demux_handler.c.

References d_printf(), fdset, max_filedes, protocols_internal, snap_demux_close(), snap_demux_init_rawip(), snap_demux_init_udp(), snap_demux_init_unix(), SNAP_RAWIP, SNAP_UDP, SNAP_UNIX, socket_rawip, socket_udp, and socket_unix.

Referenced by main().

int snap_demux_receive buffer_handler   
 

Definition at line 251 of file snap_demux_handler.c.

References buffer_handler, d_printf_timed(), fdset, protocols_internal, snap_demux_receivefrom(), SNAP_RAWIP, SNAP_UDP, SNAP_UNIX, socket_rawip, socket_udp, and socket_unix.

Referenced by snap_demux_handler().

int snap_demux_select  
 

Definition at line 269 of file snap_demux_handler.c.

References d_printf_timed(), fdset, max_filedes, protocols_internal, SNAP_RAWIP, SNAP_UDP, SNAP_UNIX, socket_rawip, socket_udp, and socket_unix.

Referenced by snap_demux_handler().


Variable Documentation

short int receiveport
 

Definition at line 17 of file snap_demux_handler.h.

Referenced by init_request(), and parse_cmdline().