atm_com.h

来自「linux 多线程例子」· C头文件 代码 · 共 42 行

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