queue.h

来自「initial working phase of the design of s」· C头文件 代码 · 共 60 行

H
60
字号
#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 + =
减小字号Ctrl + -
显示快捷键?