Public Member Functions | Public Attributes | List of all members
Interface Class Reference

#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 (const std::string &address_str)
 
int Init (sockaddr_in *port_address, sockaddr_in *broadcast_address)
 
int InitReceive ()
 
int InitReceive (const std::string &address_str)
 
 Interface ()
 
 Interface (const char *ifname)
 
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
 

Detailed Description

Definition at line 9 of file power_node.h.

Constructor & Destructor Documentation

◆ Interface() [1/2]

Interface::Interface ( const char *  ifname)

Definition at line 141 of file power_node.cpp.

◆ ~Interface() [1/2]

Interface::~Interface ( )
inline

Definition at line 17 of file power_node.h.

◆ Interface() [2/2]

Interface::Interface ( )

Definition at line 143 of file power_node2.cpp.

◆ ~Interface() [2/2]

Interface::~Interface ( )
inline

Definition at line 19 of file power_node2.h.

Member Function Documentation

◆ AddToReadSet() [1/2]

void Interface::AddToReadSet ( fd_set &  set,
int &  max_sock 
) const

Definition at line 275 of file power_node.cpp.

◆ AddToReadSet() [2/2]

void Interface::AddToReadSet ( fd_set &  set,
int &  max_sock 
) const

◆ Close() [1/2]

void Interface::Close ( )

Definition at line 150 of file power_node.cpp.

◆ Close() [2/2]

void Interface::Close ( )

◆ Init() [1/2]

int Interface::Init ( const std::string &  address_str)

Definition at line 205 of file power_node2.cpp.

◆ Init() [2/2]

int Interface::Init ( sockaddr_in *  port_address,
sockaddr_in *  broadcast_address 
)

Definition at line 202 of file power_node.cpp.

◆ InitReceive() [1/2]

int Interface::InitReceive ( )

Definition at line 162 of file power_node.cpp.

◆ InitReceive() [2/2]

int Interface::InitReceive ( const std::string &  address_str)

Definition at line 161 of file power_node2.cpp.

◆ IsReadSet() [1/2]

bool Interface::IsReadSet ( fd_set  set) const

Definition at line 281 of file power_node.cpp.

◆ IsReadSet() [2/2]

bool Interface::IsReadSet ( fd_set  set) const

Member Data Documentation

◆ ifc_address

sockaddr_in Interface::ifc_address

Definition at line 23 of file power_node.h.

◆ interface

struct ifreq Interface::interface

Definition at line 13 of file power_node.h.

◆ recv_sock

int Interface::recv_sock

Definition at line 14 of file power_node.h.

◆ send_sock

int Interface::send_sock

Definition at line 15 of file power_node.h.


The documentation for this class was generated from the following files:


pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Tue Mar 7 2023 03:19:35