Dependents:   SNMPAgent HTTPServer think_speak_a cyassl-client ... more

Embed: (wiki syntax)

« Back to documentation index

Host Class Reference

Host Class Reference

Host information container. More...

#include <host.h>

Public Member Functions

 Host ()
 Initiliazes host with null values.
 Host (const IpAddr &ip, const int &port, const char *name="")
 Initializes host.
const IpAddrgetIp () const
 Returns IP address.
const int & getPort () const
 Returns port number.
const char * getName () const
 Returns host name.
void setIp (const IpAddr &ip)
 Sets IP address.
void setPort (int port)
 Sets port number.
void setName (const char *name)
 Sets host name.
 Host ()
 Initiliazes host with null values.
 Host (const IpAddr &ip, const int &port, const char *name="")
 Initializes host.
const IpAddrgetIp () const
 Returns IP address.
const int & getPort () const
 Returns port number.
const char * getName () const
 Returns host name.
void setIp (const IpAddr &ip)
 Sets IP address.
void setPort (int port)
 Sets port number.
void setName (const char *name)
 Sets host name.

Detailed Description

Host information container.

This class is a container for data relative to a connection:

  • IP Address
  • Port number
  • Host Name

Definition at line 37 of file LPC1768/core/host.h.


Constructor & Destructor Documentation

Host (  )

Initiliazes host with null values.

Definition at line 41 of file LPC1768/core/host.h.

Host ( const IpAddr ip,
const int &  port,
const char *  name = "" 
)

Initializes host.

Definition at line 47 of file LPC1768/core/host.h.

Host (  )

Initiliazes host with null values.

Definition at line 41 of file LPC2368/core/host.h.

Host ( const IpAddr ip,
const int &  port,
const char *  name = "" 
)

Initializes host.

Definition at line 47 of file LPC2368/core/host.h.


Member Function Documentation

const IpAddr& getIp (  ) const

Returns IP address.

Definition at line 61 of file LPC1768/core/host.h.

const IpAddr& getIp (  ) const

Returns IP address.

Definition at line 61 of file LPC2368/core/host.h.

const char* getName (  ) const

Returns host name.

Definition at line 73 of file LPC2368/core/host.h.

const char* getName (  ) const

Returns host name.

Definition at line 73 of file LPC1768/core/host.h.

const int& getPort (  ) const

Returns port number.

Definition at line 67 of file LPC1768/core/host.h.

const int& getPort (  ) const

Returns port number.

Definition at line 67 of file LPC2368/core/host.h.

void setIp ( const IpAddr ip )

Sets IP address.

Definition at line 79 of file LPC1768/core/host.h.

void setIp ( const IpAddr ip )

Sets IP address.

Definition at line 79 of file LPC2368/core/host.h.

void setName ( const char *  name )

Sets host name.

Definition at line 91 of file LPC2368/core/host.h.

void setName ( const char *  name )

Sets host name.

Definition at line 91 of file LPC1768/core/host.h.

void setPort ( int  port )

Sets port number.

Definition at line 85 of file LPC2368/core/host.h.

void setPort ( int  port )

Sets port number.

Definition at line 85 of file LPC1768/core/host.h.