bridge.hh
Go to the documentation of this file.
00001 /*------------------------------------------------------------------------
00002  *---------------------           WMPSNIFFER          --------------------
00003  *------------------------------------------------------------------------
00004  *                                                         V7.0B  11/05/10
00005  *
00006  *
00007  *  File: bridge.hh
00008  *  Authors: Danilo Tardioli
00009  *  ----------------------------------------------------------------------
00010  *  Copyright (C) 2000-2012, Universidad de Zaragoza, SPAIN
00011  *
00012  *  Contact Addresses: Danilo Tardioli                   dantard@unizar.es
00013  *
00014  *  RT-WMP is free software; you can  redistribute it and/or  modify it
00015  *  under the terms of the GNU General Public License  as published by the
00016  *  Free Software Foundation;  either  version 2, or (at  your option) any
00017  *  later version.
00018  *
00019  *  RT-WMP  is distributed  in the  hope  that  it will be   useful, but
00020  *  WITHOUT  ANY  WARRANTY;     without  even the   implied   warranty  of
00021  *  MERCHANTABILITY  or  FITNESS FOR A  PARTICULAR PURPOSE.    See the GNU
00022  *  General Public License for more details.
00023  *
00024  *  You should have received  a  copy of  the  GNU General Public  License
00025  *  distributed with RT-WMP;  see file COPYING.   If not,  write to the
00026  *  Free Software  Foundation,  59 Temple Place  -  Suite 330,  Boston, MA
00027  *  02111-1307, USA.
00028  *
00029  *  As a  special exception, if you  link this  unit  with other  files to
00030  *  produce an   executable,   this unit  does  not  by  itself cause  the
00031  *  resulting executable to be covered by the  GNU General Public License.
00032  *  This exception does  not however invalidate  any other reasons why the
00033  *  executable file might be covered by the GNU Public License.
00034  *
00035  *----------------------------------------------------------------------*/
00036 #ifndef BRIDGE_HH_
00037 #define BRIDGE_HH_
00038 
00039 #include "buffer_layer.h"
00040 
00041 #define SIM_LINUX_US        1
00042 #define REAL_LINUX_US       2
00043 #define REAL_MARTE          3
00044 #define REAL_LINUX_KS       4
00045 #define REAL_LINUX_PCAP     5
00046 
00047 int start_bridge(int num_nodes_p, int _sim);
00048 void stop_bridge();
00049 void start_batch();
00050 void io_init();
00051 int io_open_sim_data(char * filename);
00052 int io_get_num_nodes();
00053 int io_get_file_size();
00054 int io_go_to(int n);
00055 int io_read_next_sim_data(char * p);
00056 int io_read_sim_data(char * p, int pos);
00057 int io_get_sim_data_num_of_elements();
00058 int io_get_unit_size();
00059 int io_close_sim_data();
00060 bool show_foreign_bridge();
00061 
00062 int read_next_token(char * tmp,char* bc_msg,int *serial,int * pos,const char * txt);
00063 int read_next_message(char * tmp,char* bc_msg,int *serial,int * pos,const char * txt);
00064 int read_next_drop(char * tmp,char* bc_msg,int *serial,int * pos,const char * txt);
00065 int read_next_authorization(char * tmp,char* bc_msg,int *serial,int * pos,const char * txt);
00066 int read_next_bc(char * tmp,char * bc_msg,int *serial,int * pos,const char * txt);
00067 
00068 int get_actual_gct(int *best,int *act);
00069 void reset_actual_gct();
00070 #include <string>
00071 std::string operator*(const std::string & s, int n);
00072 
00073 
00074 #endif /*BRIDGE_HH_*/
00075 
00076 


ros_rt_wmp_sniffer
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:57