#include <C4PuncherPacket.h>
Definition at line 83 of file C4PuncherPacket.h.
◆ CID
◆ uptr
◆ C4NetpuncherPacketCReq() [1/2]
C4NetpuncherPacketCReq::C4NetpuncherPacketCReq |
( |
const C4NetIOPacket & |
rpack | ) |
|
|
explicit |
Definition at line 60 of file C4PuncherPacket.cpp.
61 if (rpack.
getPSize() < HeaderPSize + 2 + 16)
throw "invalid size";
62 uint16_t port = *getBufPtr<uint16_t>(rpack, HeaderSize);
64 memcpy(&
static_cast<sockaddr_in6*
>(&addr)->sin6_addr, getBufPtr<char>(rpack, HeaderSize +
sizeof(port)), 16);
void SetAddress(const sockaddr *addr)
References C4NetIOPacket::getPSize().
◆ C4NetpuncherPacketCReq() [2/2]
C4NetpuncherPacketCReq::C4NetpuncherPacketCReq |
( |
const C4NetIO::addr_t & |
addr | ) |
|
|
inlineexplicit |
◆ Construct()
◆ GetAddr()
◆ GetType()
◆ PackTo()
The documentation for this class was generated from the following files: