#include <power_node.h>
Public Member Functions | |
| void | AddToReadSet (fd_set &set, int &max_sock) const |
| void | AddToReadSet (fd_set &set, int &max_sock) const |
| void | Close () |
| void | Close () |
| int | Init (sockaddr_in *port_address, sockaddr_in *broadcast_address) |
| int | Init (const std::string &address_str) |
| int | InitReceive () |
| int | InitReceive (const std::string &address_str) |
| Interface (const char *ifname) | |
| Interface () | |
| bool | IsReadSet (fd_set set) const |
| bool | IsReadSet (fd_set set) const |
| ~Interface () | |
| ~Interface () | |
Public Attributes | |
| sockaddr_in | ifc_address |
| struct ifreq | interface |
| int | recv_sock |
| int | send_sock |
Definition at line 9 of file power_node.h.
| Interface::Interface | ( | const char * | ifname | ) |
Definition at line 141 of file power_node.cpp.
|
inline |
Definition at line 17 of file power_node.h.
| Interface::Interface | ( | ) |
Definition at line 143 of file power_node2.cpp.
|
inline |
Definition at line 19 of file power_node2.h.
| void Interface::AddToReadSet | ( | fd_set & | set, |
| int & | max_sock | ||
| ) | const |
Definition at line 275 of file power_node.cpp.
| void Interface::AddToReadSet | ( | fd_set & | set, |
| int & | max_sock | ||
| ) | const |
| void Interface::Close | ( | ) |
Definition at line 150 of file power_node.cpp.
| void Interface::Close | ( | ) |
| int Interface::Init | ( | sockaddr_in * | port_address, |
| sockaddr_in * | broadcast_address | ||
| ) |
Definition at line 202 of file power_node.cpp.
| int Interface::Init | ( | const std::string & | address_str | ) |
Definition at line 205 of file power_node2.cpp.
| int Interface::InitReceive | ( | ) |
Definition at line 162 of file power_node.cpp.
| int Interface::InitReceive | ( | const std::string & | address_str | ) |
Definition at line 161 of file power_node2.cpp.
| bool Interface::IsReadSet | ( | fd_set | set | ) | const |
Definition at line 281 of file power_node.cpp.
| bool Interface::IsReadSet | ( | fd_set | set | ) | const |
| sockaddr_in Interface::ifc_address |
Definition at line 23 of file power_node.h.
| struct ifreq Interface::interface |
Definition at line 13 of file power_node.h.
| int Interface::recv_sock |
Definition at line 14 of file power_node.h.
| int Interface::send_sock |
Definition at line 15 of file power_node.h.