ACE_RMCast::From Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::From:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 From (Header const &h, istream &is)
 From (Address const &addr)
From_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 = 0x0001

Protected Member Functions

virtual Profile_ptr clone_ ()
 From (From const &from)

Private Attributes

Address address_

Detailed Description

Definition at line 381 of file Protocol.h.


Constructor & Destructor Documentation

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

Definition at line 386 of file Protocol.h.

References address_.

00387         : Profile (h)
00388     {
00389       u32 addr;
00390       u16 port;
00391 
00392       is >> addr;
00393       is >> port;
00394 
00395       address_ = Address (port, addr);
00396     }

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

Definition at line 398 of file Protocol.h.

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

00399         : Profile (id), address_ (addr)
00400     {
00401       size (calculate_size ());
00402     }

ACE_RMCast::From::From ( From const &  from  )  [inline, protected]

Definition at line 418 of file Protocol.h.

00419         : Profile (from),
00420           address_ (from.address_)
00421     {
00422     }


Member Function Documentation

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

Definition at line 426 of file Protocol.h.

References address_.

00427     {
00428       return address_;
00429     }

From_ptr ACE_RMCast::From::clone ( void   )  [inline]

Reimplemented from ACE_RMCast::Profile.

Definition at line 405 of file Protocol.h.

References clone_().

00406     {
00407       return From_ptr (clone_ ());
00408     }

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

Implements ACE_RMCast::Profile.

Definition at line 412 of file Protocol.h.

Referenced by clone().

00413     {
00414       Profile_ptr p (new From (*this));
00415       return p;
00416     }

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

Implements ACE_RMCast::Profile.

Definition at line 443 of file Protocol.h.

00444     {
00445       u32 addr (0);
00446       u16 port (0);
00447 
00448       ss << addr;
00449       ss << port;
00450     }

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

Implements ACE_RMCast::Profile.

Definition at line 433 of file Protocol.h.

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

00434     {
00435       u32 addr (address_.get_ip_address ());
00436       u16 port (address_.get_port_number ());
00437 
00438       os << addr;
00439       os << port;
00440     }


Member Data Documentation

Address ACE_RMCast::From::address_ [private]

Definition at line 453 of file Protocol.h.

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

u16 const ACE_RMCast::From::id = 0x0001 [static]

Definition at line 383 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