NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IpRelay Class Reference

Public Member Functions

 IpRelay (const char *node, const char *service, pollfd &pfd)
 ~IpRelay ()
int connect ()
bool connected () const
void disconnect ()
void send (const string &str)
void reset ()
void poweroff ()
int handle (pollfd &pfd, char *buf, size_t size)
void start_poweroff_countdown ()
int secs_until_poweroff ()

Private Types

enum  state {
  OFF, RST1, RST2, PWRON1,
  PWRON2, DATA, PWROFF1, PWROFF2
}

Private Member Functions

 IpRelay (const IpRelay &)
IpRelayoperator= (const IpRelay &)

Private Attributes

int fd
struct addrinfo * ai
const char * node
const char * service
enum IpRelay::state state
pollfd & pfd
string to_relay
struct timeval poweroff_countdown

Member Enumeration Documentation

enum IpRelay::state
private
Enumerator:
OFF 
RST1 
RST2 
PWRON1 
PWRON2 
DATA 
PWROFF1 
PWROFF2 

Constructor & Destructor Documentation

IpRelay::IpRelay ( const IpRelay )
private
IpRelay::IpRelay ( const char *  node,
const char *  service,
pollfd &  pfd 
)
inline
IpRelay::~IpRelay ( )
inline

Member Function Documentation

int IpRelay::connect ( )
inline
bool IpRelay::connected ( ) const
inline
void IpRelay::disconnect ( )
inline
int IpRelay::handle ( pollfd &  pfd,
char *  buf,
size_t  size 
)
inline
IpRelay& IpRelay::operator= ( const IpRelay )
private
void IpRelay::poweroff ( )
inline
void IpRelay::reset ( )
inline
int IpRelay::secs_until_poweroff ( )
inline
void IpRelay::send ( const string &  str)
inline
void IpRelay::start_poweroff_countdown ( )
inline

Member Data Documentation

struct addrinfo* IpRelay::ai
private
int IpRelay::fd
private
const char* IpRelay::node
private
pollfd& IpRelay::pfd
private
struct timeval IpRelay::poweroff_countdown
private
const char* IpRelay::service
private
string IpRelay::to_relay
private

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