Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

rbuffers.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_RBUFFERS_H
00024 #define ARTP_RBUFFERS_H   1
00025 
00026 
00027 #include <netinet/in.h>
00028 #include <sys/socket.h>
00029 #include "packet.h"
00030 
00031 
00043 extern int 
00044 rbuffers_init(void);
00045 
00046 
00061 extern int 
00062 rbuffers_create(int id_buffer);
00063 
00064 
00080 extern int 
00081 rbuffers_destroy(int id_buffer);
00082 
00083 
00100 extern int
00101 rbuffers_get_size(int id_buffer, unsigned long int *buffer_size);
00102 
00103 
00159 extern int 
00160 rbuffers_add_packet(int id_buffer, char *value, int payload_size, 
00161         struct sockaddr *sender, SID_TYPE sid, enum packet_type type, 
00162         SEQ_TYPE seq, DSEQ_TYPE dseq, FRAGMENTS_TYPE frag_id, 
00163         FRAGMENTS_TYPE frag_count, double current_time, 
00164         unsigned int retransmits_timeout);
00165 
00166 
00204 extern int 
00205 rbuffers_get_dgram(int id_buffer, char **value, int *size, 
00206         enum packet_type *type, DSEQ_TYPE *dseq, struct sockaddr **sender, 
00207         SID_TYPE *sid);
00208 
00209 
00210 #endif
00211 
00212 /* vim: set ts=4 : */

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