Cleanup + client.

This commit is contained in:
MarcEricMartel
2023-12-08 04:58:27 -05:00
parent 34976ef7ec
commit 3da68297e4
3 changed files with 3 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ int Connector::Connect(const char* srv_addr, std::string name) {
int errors = 0;
std::vector<char*> lsPck;
while (!ready) {
lsPck = netprot::recvPacks(m_sock_udp, &bf);
netprot::recvPacks(m_sock_udp, &bf, &lsPck);
for (auto& pck : lsPck) {
uint32_t bsize = bf.len - (pck - bf.ptr);