/****************************************************************************
 *
 * s2monitor.c - Silencer Toolkit Example Application
 *
 * Written by Michael "Mr. Sump" Poppitz.
 *
 */

 /***************************************************************************
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/

#include <stdio.h>
#include <stdlib.h>

#include "trx.h"
#include "packet.h"
#include "monitor.h"


int main() {				/* this one needs no explanations */
	TRX *trx = new TRX();
	if (trx->init() < 0)
		perror("init");

	Monitor *mon = new Monitor();

	while (Packet *pa = trx->rx()) {
		mon->display(pa);
		delete pa;
	}

	return(EXIT_SUCCESS);
}
