1
/*** This Programs/Libraries are (C)opyright by Sebastian Krahmer.
2
*** You may use it under the terms of the GPL. You should have
3
*** already received the file COPYING that shows you your rights.
4
*** Please look at COPYING for further license-details.
6
*** THERE IS ABSOLUTELY NO WARRANTY. SO YOU USE IT AT YOUR OWN RISK.
7
*** IT WAS WRITTEN IN THE HOPE THAT IT WILL BE USEFULL. I AM NOT RESPONSIBLE
8
*** FOR ANY DAMAGE YOU MAYBE GET DUE TO USING MY PROGRAMS.
14
#include "usi++/usi-structs.h"
20
* The transmitter lets you send packets on the net.
21
* You can write your own and register them with
22
* register_tx() but you must provide at least
23
* sendpack(). Shipped with USI++ is TX_IP which
24
* is in fact a RAW socket */
30
/*! Do the send. You don't call this directly. IP::sendpack() etc
31
* deliver the request to here. YOur task is only to provide a sendpack()
32
* when you write your own TX classes. */
33
virtual int sendpack(void *, size_t, struct sockaddr *) = 0;
35
/*! Must have capability to send broadcast packets. May be
37
virtual int broadcast() = 0;
41
virtual int timeout(struct timeval) = 0;
43
/*! RX derived class must also tell user when timeout occurs */
44
virtual bool timeout() = 0;