/*
 * <insert one-line description of what the program does>
 * Copyright (c) <2008-2009>, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU Lesser General Public License,
 * version 2.1, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 * more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.

File Name:          ListenBroadcast.h

Description:

Environment (opt):
 
Notes (opt):
  =====================================================================
  Revision   Revision History		Author     Date
  =====================================================================
  
  =====================================================================
****************************************************************************/

#ifndef __LISTENBROADCAST_H__
#define __LISTENBROADCAST_H__

#define BROADCASTING_PORT 	5000 /*modify by Fred for multicast*/
#define GRUPO "239.255.0.0" /*add by Fred for multicast*/
#define	HEAD_FLAG_STRING  	"TDServer"
#define TAIL_FLAG		0x80
#define MAX_DATA_LEN		128+2 //LEN(Max 128bit)+tail(1bit)+XOR(1bit)
#define DEFAULT_TIMEOUT		10

typedef struct {
	char 		head_flag[8];
	unsigned short  data_len;
	char		data[MAX_DATA_LEN];
	//unsigned char		tail_flag;
} t_packet_format; //modify by Fred for multicast

//void ConnMgmt_StartListen();

#endif
