8c2952457
김태훈
응용 프로그램 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef _FABIND_H_
#define _FABIND_H_
#include <fa-bind-ioctl.h>
typedef enum { MSG_HOWTO_NORMAL = SR_TYPE_NORMAL,
MSG_HOWTO_EXPRESS = SR_TYPE_EXPRESS,
MSG_HOWTO_EMERENCY = SR_TYPE_EMERENCY } msg_howto_t;
#define FABIND_LAST_RECV_PORT 0x7fff0000
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern poll_obj_t *fabind_open( int port, int group, int recv_queue_count );
extern void fabind_close( poll_obj_t *obj );
extern poll_obj_t *fabind_get_byport( int port );
extern int fabind_write( poll_obj_t *obj, int port, char *buf, int len );
extern int fabind_read( poll_obj_t *obj, char *buf, int len, int *need_ack );
extern int fabind_write_and_response( poll_obj_t *obj, int port, char *tx_buf, char *rx_buf, int tx_cnt, int rx_cnt );
extern int fabind_write_group( poll_obj_t *obj, int grp_port, char *buf, int len );
extern int fabind_get_recv_port( poll_obj_t *obj );
extern int fabind_write_timeout( poll_obj_t *obj, int port, char *buf, int len, int timeout_sec );
#ifdef __cplusplus
}
#endif
|