AppChat  0.5.0
TCP client-server caht application with boost::asio library.
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TransportResponse Class Reference
Inheritance diagram for TransportResponse:
Inheritance graph
[legend]
Collaboration diagram for TransportResponse:
Collaboration graph
[legend]

Public Member Functions

virtual const void * get_data () const override
 
virtual void * get_data () override
 
virtual const char * get_login () const
 
virtual identifier_t get_roomid () const
 
virtual uint32_t get_length_data () const override
 
- Public Member Functions inherited from Response
virtual const void * get_header () const override
 
virtual void * get_header () override
 
virtual uint16_t get_protocol_version () const override
 
virtual TypeCommand get_type () const override
 
virtual TypeCommand get_type_data () const override
 
virtual DateTime get_datetime () const override
 

Protected Attributes

char __data [LengthResponse]
 
- Protected Attributes inherited from Response
char header [Block::Header]
 

Static Protected Attributes

static constexpr auto LengthResponse = Block::LoginName + Block::RoomId + Block::TextMessage
 

Member Function Documentation

virtual identifier_t TransportResponse::get_roomid ( ) const
inlinevirtual
Note
replace -> *(identifier_t *)(__data+offset); Misaligned Integer Pointer Assignment in C The compiler can often safely optimize calls to memcpy, even if the arguments are unaligned.

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