This commit is contained in:
MarcEricMartel
2023-12-16 15:05:06 -05:00
parent 4a4f353250
commit 1065357e70
2 changed files with 17 additions and 12 deletions

View File

@@ -1173,11 +1173,11 @@ netprot::Packet netprot::makePack(void* ptr, PACKET_TYPE type) {
}
void netprot::recvPacks(SOCKET sock, Buffer* buf, std::vector<char*>* lsPck) {
int len = buf->tmp ? buf->tmp - buf->ptr : 0,
int len = 0,//buf->tmp ? buf->tmp - buf->ptr : 0,
end = 0;
char* cursor = buf->tmp ? buf->tmp : nullptr,
* next = buf->tmp ? buf->tmp + 1 : buf->ptr,
* last = buf->tmp ? buf->tmp : buf->ptr;
char* cursor = nullptr,//buf->tmp ? buf->tmp : nullptr,
* next = buf->ptr,//buf->tmp ? buf->tmp + 1 : buf->ptr,
* last = buf->ptr,//buf->tmp ? buf->tmp : buf->ptr;
bool ended = true;
struct pollfd fds[1];