📄 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 <ntddk.h>
#include <tdikrnl.h>
#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
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -