www.pudn.com > tdi_fw.zip > dispatch.c
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs) // // $Id: dispatch.c,v 1.4 2002/12/03 12:14:27 dev Exp $ /* * Dispatch routines for TDI ioctls */ #include#include #include "sock.h" #include "dispatch.h" #if DBG # define ENTRY(code, fn) {code, fn, #code} # define LAST_ENTRY {0, NULL, NULL} #else # define ENTRY(code, fn) {code, fn} # define LAST_ENTRY {0, NULL} #endif struct tdi_ioctl g_tdi_ioctls[] = { ENTRY(TDI_ASSOCIATE_ADDRESS, tdi_associate_address), ENTRY(TDI_CONNECT, tdi_connect), ENTRY(TDI_DISASSOCIATE_ADDRESS, tdi_disassociate_address), ENTRY(TDI_SET_EVENT_HANDLER, tdi_set_event_handler), ENTRY(TDI_SEND_DATAGRAM, tdi_send_datagram), ENTRY(TDI_RECEIVE_DATAGRAM, tdi_receive_datagram), //TODO: ENTRY(TDI_ACCEPT, tdi_accept), //TODO: ENTRY(TDI_LISTEN, tdi_listen), LAST_ENTRY };