Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by armegon on 17.09.20 г..
- //
- #include "Packet.h"
- #include "Protocol/ServerOpcode.h"
- #include <iostream>
- void Packet::PreparePacket(ServerOpcode serverOpcode, std::string message) {
- snprintf(header_,header_length,"%x\n",serverOpcode);
- strcpy(body_, message.c_str());
- strcpy(data_, header_ );
- strcat(data_, body_);
- }
- void Packet::decode_header() {
- }
Advertisement
Add Comment
Please, Sign In to add comment