ACE_RMCast::To Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::To:

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast::To:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 To (Header const &h, istream &is)
 To (Address const &addr)
To_ptr clone ()
Address const & address () const
virtual void serialize_body (ostream &os) const
virtual void serialize_body (sstream &ss) const

Static Public Attributes

static u16 const id = 0x0002

Protected Member Functions

virtual Profile_ptr clone_ ()
 To (To const &to)

Private Attributes

Address address_

Detailed Description

Definition at line 466 of file Protocol.h.


Constructor & Destructor Documentation

ACE_RMCast::To::To ( Header const &  h,
istream is 
) [inline]

Definition at line 471 of file Protocol.h.

References address_.

00472         : Profile (h)
00473     {
00474       u32 addr;
00475       u16 port;
00476 
00477       is >> addr;
00478       is >> port;
00479 
00480       address_ = Address (port, addr);
00481     }

ACE_RMCast::To::To ( Address const &  addr  )  [inline]

Definition at line 483 of file Protocol.h.

References ACE_RMCast::Profile::calculate_size(), and ACE_RMCast::Profile::size().

00484         : Profile (id), address_ (addr)
00485     {
00486       size (calculate_size ());
00487     }

ACE_RMCast::To::To ( To const &  to  )  [inline, protected]

Definition at line 503 of file Protocol.h.

00504         : Profile (to),
00505           address_ (to.address_)
00506     {
00507     }


Member Function Documentation

Address const& ACE_RMCast::To::address ( void   )  const [inline]

Definition at line 511 of file Protocol.h.

References address_.

00512     {
00513       return address_;
00514     }

To_ptr ACE_RMCast::To::clone ( void   )  [inline]

Reimplemented from ACE_RMCast::Profile.

Definition at line 490 of file Protocol.h.

References clone_().

00491     {
00492       return To_ptr (clone_ ());
00493     }

virtual Profile_ptr ACE_RMCast::To::clone_ (  )  [inline, protected, virtual]

Implements ACE_RMCast::Profile.

Definition at line 497 of file Protocol.h.

Referenced by clone().

00498     {
00499       Profile_ptr p (new To (*this));
00500       return p;
00501     }

virtual void ACE_RMCast::To::serialize_body ( sstream ss  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 528 of file Protocol.h.

00529     {
00530       u32 addr (0);
00531       u16 port (0);
00532 
00533       ss << addr;
00534       ss << port;
00535     }

virtual void ACE_RMCast::To::serialize_body ( ostream os  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 518 of file Protocol.h.

References address_, ACE_INET_Addr::get_ip_address(), and ACE_INET_Addr::get_port_number().

00519     {
00520       u32 addr (address_.get_ip_address ());
00521       u16 port (address_.get_port_number ());
00522 
00523       os << addr;
00524       os << port;
00525     }


Member Data Documentation

Address ACE_RMCast::To::address_ [private]

Definition at line 538 of file Protocol.h.

Referenced by address(), serialize_body(), and To().

u16 const ACE_RMCast::To::id = 0x0002 [static]

Definition at line 468 of file Protocol.h.


The documentation for this struct was generated from the following files:
Generated on Tue Feb 2 17:36:29 2010 for ACE_RMCast by  doxygen 1.4.7