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

📄 atm_com.h

📁 linux 多线程例子
💻 H
字号:
/******************************************************** * An example source module to accompany... * * "Using POSIX Threads: Programming with Pthreads" *     by Brad nichols, Dick Buttlar, Jackie Farrell *     O'Reilly & Associates, Inc. * ******************************************************** * atm_com.h * * The include file for the communications package used by the  * Automated Teller Machine (ATM) example program. * */#define COMM_BUF_SIZE              100#define MAX_NUM_CONNECTIONS        100#define SOCKET_NAME                 "./.atm_conn"/* server side */void server_comm_init(void);void server_comm_get_request(int *, char *);void server_comm_send_response(int, char *);void server_comm_close_conn(int);void server_comm_shutdown(void);/* client side */void client_comm_init(void);void client_comm_send_request(char *);void client_comm_get_response(char *);void client_comm_shutdown(void);

⌨️ 快捷键说明

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