Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

abuffers.h

Go to the documentation of this file.
00001 /*
00002  * Active Router Transport Protocol (ARTP) implementation
00003  * Copyright (c) 2004, Tomas Rebok
00004  * All rights reserved.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the "BSD License" which is
00008  * distributed with the software in the file LICENSE.
00009  *
00010  * This program is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the BSD
00013  * License for more details.
00014  */
00015 
00023 #ifndef ARTP_ABUFFERS_H
00024 #define ARTP_ABUFFERS_H   1
00025 
00026 
00027 #include <netinet/in.h>
00028 #include <sys/socket.h>
00029 #include "types.h"
00030 #include "errors.h"
00031 
00032 
00044 extern int
00045 abuffers_init(void);
00046 
00047 
00069 extern int
00070 abuffers_create(int id_buffer, SID_TYPE sid, struct sockaddr *sender);
00071 
00072 
00088 extern int
00089 abuffers_destroy(int id_buffer);
00090 
00091 
00127 extern int
00128 abuffers_add_seq(int id_buffer, SID_TYPE sid, struct sockaddr *sender, 
00129         SEQ_TYPE seq, double latest_send_time, int maximal_count);
00130 
00131 
00163 extern int
00164 abuffers_get_ack(double time, SID_TYPE *sid, struct sockaddr **receiver, 
00165         char **value, int *size);
00166 
00167 
00168 #endif
00169 
00170 /* vim: set ts=4 : */

Generated on Fri May 21 07:50:24 2004 for Active Router Transport Protocol (ARTP) by doxygen1.2.15