/*
** CBLM v3
** $Id: transmit.h,v 1.20 2007/12/11 06:22:49 sella Exp $
** Copyright (c) 2004-2007 James M. Sella. All Rights Reserved.
** Released under the GPL Version 2 License.
** http://www.digitalgenesis.com
** 
** Cheap Bastard Latency Monitor v3
*/

#ifndef __DGS_TRANSMIT_H
#define __DGS_TRANSMIT_H

#include "common.h"

#define NOPROBES_WAIT 30 // Wait 30 sec before checking for probes again.

/* 60 second cycle, with 16 slices per second. */
#define CYCLE_SECONDS		60 // Transmit 'rate' packets every 60 seconds.
#define CYCLE_USEC			(CYCLE_SECONDS * 1000000)
#define SLICES_PER_SEC		16 // Higher values produce smoother output, but use more CPU.
#define SLICES_PER_CYCLE	(CYCLE_SECONDS * SLICES_PER_SEC) // 60*16 slices per polling interval.

/* Function definitions. */
int transmit_packet(int s, struct in_addr *dst, uint32_t pending, struct tos_t *tos, uint32_t set);

#endif

/*
** Local Variables:
** c-basic-offset: 3
** tab-width: 3
** End:
** vim: noet ts=3 sw=3
*/
