1 #ifndef CONTROL_REQUEST_H 2 #define CONTROL_REQUEST_H 9 std::memcpy(header, &PROTOCOL_VERS, Block::VersionProtocol);
11 virtual const void* get_data()
const override {
return __data; }
12 virtual void* get_data()
override {
return __data; }
23 std::memcpy(&roomid, __data,
sizeof(identifier_t));
27 virtual uint32_t get_length_data()
const override {
return LengthRequest;}
30 static constexpr
auto LengthRequest = Block::RoomId;
31 char __data[LengthRequest];
37 std::memcpy(header+Block::VersionProtocol, &type_request, Block::VersionProtocol);
38 std::memcpy(__data, &roomid, Block::RoomId);
42 std::memcpy(header, request->get_header(), Block::Header);
43 std::memcpy(header+Block::VersionProtocol, &type_request, Block::VersionProtocol);
46 const TypeCommand type_request = TypeCommand::JoinRoomRequest;
49 using join_room_request_ptr = std::shared_ptr<JoinRoomRequest>;
50 #endif // CONTROL_REQUEST_H
Definition: control_request.h:6
Definition: control_request.h:34
virtual identifier_t get_roomid() const
Definition: control_request.h:14