40 |
#define WINDOW_SIZE 32 /* Packet we can send/receive without ack */ |
#define WINDOW_SIZE 32 /* Packet we can send/receive without ack */ |
41 |
#define WINDOW_HIGH 24 /* when the window is considered near closed */ |
#define WINDOW_HIGH 24 /* when the window is considered near closed */ |
42 |
|
|
43 |
|
#define P3_TIMEOUT 5 |
44 |
|
|
45 |
extern struct p3state cli, srv; |
extern struct p3state cli, srv; |
46 |
extern window_t wsend, wunack, wnack; |
extern window_t wsend, wunack, wnack; |
47 |
|
|
48 |
void p3_register_to_engine (const access_t * myaccess); |
void p3_register_to_engine (const access_t * myaccess); |
49 |
|
int p3_ready (); |
50 |
void p3_init (buffer_t * bufin, buffer_t * bufout); |
void p3_init (buffer_t * bufin, buffer_t * bufout); |
51 |
int p3_want_write(buffer_t * out); |
int p3_want_write(buffer_t * out); |
52 |
void p3_recv (buffer_t * bufin); |
void p3_recv (buffer_t * bufin); |
53 |
|
void p3_timeout(buffer_t *bufin, buffer_t *bufout, int timeout); |
54 |
|
|
55 |
#endif /* __P3_P3_H__ */ |
#endif /* __P3_P3_H__ */ |