Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

transport.h

Go to the documentation of this file.
00001 /***
00002  * This file is part of OpenHome, an open source home automation system.
00003  * Copyright (C) 2003 Jan Klötzke
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 
00027 #ifndef __TRANSPORT_H
00028 #define __TRANSPORT_H
00029 
00030 #include <inttypes.h>
00031 #include "net/network.h"
00032 
00036 enum tsp_service_e {
00037         S_DGRAM=0,      
00038         S_REPEATED,     
00039         S_ACKED,        
00040         S_REQUEST,      
00041         S_INVALID=0xff  
00042 };
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 // global functions
00049 void tsp_check_timeout(void);
00050 void tsp_process(void);
00051 int8_t tsp_requ(net_buf_t *buf, net_addr_t *dest, enum tsp_service_e service);
00052 uint8_t tsp_clear_to_send(void);
00053 void tsp_set_segment_size(uint8_t size);
00054 uint8_t tsp_get_segment_size(void);
00055 void tsp_set_group_size(uint8_t group, uint8_t size);
00056 uint8_t tsp_get_group_size(uint8_t group);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif

Generated on Fri Oct 17 16:45:54 2003 for OpenHome by doxygen 1.3.3