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
ControlRequest Class Reference
Inheritance diagram for ControlRequest:
Inheritance graph
[legend]
Collaboration diagram for ControlRequest:
Collaboration graph
[legend]

Public Member Functions

virtual const void * get_data () const override
 
virtual void * get_data () override
 
virtual identifier_t get_roomid () const
 
virtual uint32_t get_length_data () const override
 
- Public Member Functions inherited from Request
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 [LengthRequest]
 
- Protected Attributes inherited from Request
char header [Block::Header]
 

Static Protected Attributes

static constexpr auto LengthRequest = Block::RoomId
 

Member Function Documentation

virtual identifier_t ControlRequest::get_roomid ( ) const
inlinevirtual
Note
replace -> return *(identifier_t *)(__data); 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: