Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
2dea2b645e8b83c1d78d1c713afc2e14a054cb35
[simgrid.git] / src / gras / gs / net_interface_fd.h
1 /* gs_fd_net_interface.h */
2 #ifndef GS_FD_NET_INTERFACE_H
3 #define GS_FD_NET_INTERFACE_H
4
5
6 struct s_gs_fd_net_connection_arg {
7         int fd;
8 };
9
10 struct s_gs_net_driver_ops *
11 gs_fd_net_driver(void);
12
13
14 void
15 gs_fd__init(struct s_gs_net_driver      *p_driver);
16
17
18 void
19 gs_fd__exit(struct s_gs_net_driver      *p_driver);
20
21
22 void
23 gs_fd_connection__init(struct s_gs_connection   *p_connection,
24                        void                     *arg);
25
26 void
27 gs_fd_connection__exit(struct s_gs_connection   *p_connection);
28
29 void
30 gs_fd_connection_write(struct s_gs_connection   *p_connection,
31                        void                     *ptr,
32                        long int                  length);
33
34 void
35 gs_fd_connection_read(struct s_gs_connection    *p_connection,
36                       void                      *ptr,
37                       long int                   length);
38 void
39 gs_fd_connection_flush(struct s_gs_connection   *p_connection);
40 #endif /* GS_FD_NET_INTERFACE_H */