11 #ifndef INCLUDED_LIBCYBERRADIO_NDR651_TRANSMITSOCKET_H 12 #define INCLUDED_LIBCYBERRADIO_NDR651_TRANSMITSOCKET_H 16 #include <boost/thread/mutex.hpp> 66 bool sendFrame(
unsigned char * frame,
const int & frameLen);
67 bool isUsingRawSocket(
void) {
return _isRaw; };
68 bool isUsingUdpSocket(
void) {
return !_isRaw; };
75 bool _isRaw, _isBroadcast;
76 boost::mutex _txMutex;
78 long unsigned int _sendCount, _byteCount;
82 bool _makeRawSocket();
83 bool _makeUdpSocket();
bool sendFrame(unsigned char *frame, const int &frameLen)
Sends a frame of data.
std::string getIpBroadcastAddress()
Gets the IP broadcast address.
Defines functionality for LibCyberRadio applications.
std::string getMacAddress()
Gets the MAC address.
TransmitSocket(const std::string &ifname, unsigned int sport)
Constructs a TransmitSocket object.
std::string getIpAddress()
Gets the IP address.
virtual ~TransmitSocket()
Destroys a TransmitSocket object.