Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

options.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_OPTIONS_H
00024 #define ARTP_OPTIONS_H   1
00025 
00026 
00028 #define OPTIONS_COUNT 3
00029 
00030 
00031 #include <stdarg.h>
00032 #include "structs.h"
00033 #include "packet.h"
00034 
00035 
00037 enum artp_session_options {
00042     MAX_MSS,
00043     
00048      MAX_DGRAM_LEN,
00049 
00057      RETRANSMITS_TIMEOUT
00058 };
00059 
00060 
00072 extern int
00073 options_init();
00074 
00075 
00089 extern int
00090 set_global_option(char *option_name, char *option_value, int use);
00091 
00092 
00106 extern int 
00107 set_default_options(struct session_item *session);
00108 
00109 
00135 extern int 
00136 get_session_options(struct session_item *session, struct artp_dgram *dgram, 
00137         char **options, int *size);
00138 
00139 
00161 extern int 
00162 parse_session_options(struct session_item *session, char *options, int size);
00163 
00164 
00190 extern int 
00191 use_options(struct session_item *session, int use, 
00192         enum artp_session_options option_id, va_list *ap);
00193 
00194 
00195 #endif
00196 
00197 /* vim: set ts=4 : */

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