00001 /*** This Programs/Libraries are (C)opyright by Sebastian Krahmer.
00002 *** You may use it under the terms of the GPL. You should have
00003 *** already received the file COPYING that shows you your rights.
00004 *** Please look at COPYING for further license-details.
00005 ***
00006 *** THERE IS ABSOLUTELY NO WARRANTY. SO YOU USE IT AT YOUR OWN RISK.
00007 *** IT WAS WRITTEN IN THE HOPE THAT IT WILL BE USEFULL. I AM NOT RESPONSIBLE
00008 *** FOR ANY DAMAGE YOU MAYBE GET DUE TO USING MY PROGRAMS.
00009 ***/
00010 #ifndef _RX_H_
00011 #define _RX_H_
00012
00013 #include "config.h"
00014 #include "usi++/usi-structs.h"
00015 #include <stdio.h>
00016
00017 namespace usipp {
00018
00025 class RX {
00026 public:
00027 RX() {}
00028 virtual ~RX() {}
00029
00032 virtual int sniffpack(void *, size_t) = 0;
00033
00035 virtual int init_device(char *, int, size_t) = 0;
00036
00038 virtual int setfilter(char *) = 0;
00039
00041 virtual int timeout(struct timeval) = 0;
00042
00044 virtual bool timeout() = 0;
00045
00046 };
00047
00048 } // namespace usipp
00049 #endif
1.2.3 written by Dimitri van Heesch,
© 1997-2000