#include <Protocol.h>
Inheritance diagram for ACE_RMCast::From:
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_ |
Definition at line 381 of file Protocol.h.
ACE_RMCast::From::From | ( | Header const & | h, | |
istream & | is | |||
) | [inline] |
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] |
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_().
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] |
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 }
Address ACE_RMCast::From::address_ [private] |
u16 const ACE_RMCast::From::id = 0x0001 [static] |
Definition at line 383 of file Protocol.h.