⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlul_screen.h

📁 P2P NAP的C实现 P2P在网络应用中越来越流行
💻 H
字号:
/* This file was contributed by Suzanne Skinner and is copyrighted   under the GNU General Public License. (C) 2002 Suzanne Skinner.   The code contained in this file is free software; you can   redistribute it and/or modify it under the terms of the GNU General   Public License as published by the Free Software Foundation; either   version 2, or (at your option) any later version.   This program is distributed in the hope that it will be useful, but   WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.*/#ifndef _NAP_DLUL_SCREEN_H#define _NAP_DLUL_SCREEN_H#define DLUL_REFRESH_INTERVAL 1     /* seconds */extern WINDOW *dlul_win;typedef enum dlul_field_enum {    FLD_FILENAME,    FLD_USER,    FLD_PROGRESS,    DLUL_NUM_FIELDS} dlul_field;typedef struct dlul_field_info_struct {    dlul_field  id;    int         len;} dlul_field_info_type;void  dlulscr(void);void  enddlulscr(void);void  dlul_refresh(void);void  dlul_print_download(int index, const download_t *task);void  dlul_print_upload(int index, const upload_t *task);void  dlul_print_task(int index, const char *nick, const char *fn, int state,                      size_t size, size_t bsz, size_t pos, time_t p_time);const char *dlul_get_status_desc(int status);int   dlul_input(WINDOW *win, sock_t *m);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -