📄 queue.h
字号:
#ifndef __QUEUE_H#define __QUEUE_H#include "term.h"#include <sys/time.h> // timeval#include <netinet/in.h> // sockaddr_in#define MMSIZE 1500 - sizeof( struct iphdr ) - sizeof( struct udphdr )typedef unsigned int u_int;typedef unsigned long u_long;extern u_int id;class queue{ public: int locked; struct event { timeval tv; u_int input; u_int owner; struct event* next; }; event* q; term* output; long* lastfrom; u_int clients; int sock; struct sockaddr_in to; timeval when; timeval stamp; dword strokes; word sending; char* inbuf; ~queue(); queue( term* _output, int sock, struct sockaddr_in _to, int id ); void signal( char* buffer, int length, int sender, timeval _stamp ); void disperse(); void enqueue( u_int input ); void xmit(); void pipe( u_char input ); void func( u_char input ); void arrow( u_char input );};#define BS 0x301#define CR 0x302#define DEL 0x303#define INS 0x304#define HOME 0x305#define END 0x306#define PAN_LEFT 0x307#define PAN_RIGHT 0x308#endif // __QUEUE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -