Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

setting.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 
00022 #ifndef ARTP_SETTING_H
00023 #define ARTP_SETTING_H   1
00024 
00025 
00026 #include <stdint.h>
00027 #include "types.h"
00028 
00029 
00031 struct Tsetting {
00033     unsigned int initial_mss;
00034 
00036     TS_TYPE initial_exp_time;
00037 
00039     double initial_rto_time;
00040 
00042     unsigned int default_retries_timeout;
00043 
00045     unsigned long int initial_sbuffers_max_size;
00046 
00048     unsigned long int initial_rbuffers_max_size;
00049 
00051     unsigned long int initial_rbuffers_red_limit;
00052 
00054     int default_red_drop_probability;
00055 
00057     unsigned int default_max_acks_count;
00058 };
00059 
00061 struct Tsetting global_setting;
00062 
00063 
00075 extern int 
00076 setting_set_defaults(void);
00077 
00078 
00092 extern int 
00093 setting_read_file(char *filename);
00094 
00095 
00096 #endif
00097 
00098 /* vim: set ts=4 : */

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