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"
21
* This sends IP datagrams over
23
class TX_IP : public TX {
29
TX_IP() : rawfd(-1) { tx_timeout = false; }
33
/*! Send a packet on raw socket (starting with IP-hdr) */
34
virtual int sendpack(void *, size_t, struct sockaddr*);
36
/*! Enable broadcast option on socket */
37
virtual int broadcast();
39
/*! Set a timeout. Implements TX::timeout() = 0. */
40
int timeout(struct timeval);
42
/*! Returns true when sendto() timed out */