![]() |
libcyberradio
22.01.24
|
Transmit socket class. More...
#include <TransmitSocket.h>
Public Member Functions | |
| TransmitSocket (const std::string &ifname, unsigned int sport) | |
| Constructs a TransmitSocket object. More... | |
| virtual | ~TransmitSocket () |
| Destroys a TransmitSocket object. | |
| std::string | getMacAddress () |
| Gets the MAC address. More... | |
| std::string | getIpAddress () |
| Gets the IP address. More... | |
| std::string | getIpBroadcastAddress () |
| Gets the IP broadcast address. More... | |
| bool | sendFrame (unsigned char *frame, const int &frameLen) |
| Sends a frame of data. More... | |
Transmit socket class.
Definition at line 32 of file TransmitSocket.h.
| TransmitSocket | ( | const std::string & | ifname, |
| unsigned int | sport | ||
| ) |
Constructs a TransmitSocket object.
| ifname | Ethernet interface name |
| sport |
Definition at line 35 of file TransmitSocket.cpp.
| std::string getIpAddress | ( | ) |
Gets the IP address.
Definition at line 185 of file TransmitSocket.cpp.
| std::string getIpBroadcastAddress | ( | ) |
Gets the IP broadcast address.
Definition at line 196 of file TransmitSocket.cpp.
| std::string getMacAddress | ( | ) |
Gets the MAC address.
Definition at line 168 of file TransmitSocket.cpp.
| bool sendFrame | ( | unsigned char * | frame, |
| const int & | frameLen | ||
| ) |
Sends a frame of data.
| frame | The data to send |
| frameLen | The length of the data |
Definition at line 214 of file TransmitSocket.cpp.