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 (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
 

Detailed Description

Definition at line 9 of file power_node.h.

Constructor & Destructor Documentation

Interface::Interface ( const char *  ifname)

Definition at line 141 of file power_node.cpp.

Interface::~Interface ( )
inline

Definition at line 17 of file power_node.h.

Interface::Interface ( )

Definition at line 143 of file power_node2.cpp.

Interface::~Interface ( )
inline

Definition at line 19 of file power_node2.h.

Member Function Documentation

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

Member Data Documentation

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.


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


pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Wed Jun 5 2019 20:40:40