UDP to the rescue

This commit is contained in:
MarcEricMartel
2023-11-27 13:21:50 -05:00
parent 5e57a13820
commit e6b3f2fb1c
2 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,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_tcp, &bf);
lsPck = netprot::recvPacks(m_sock_udp, &bf);
for (auto& pck : lsPck) {
uint32_t bsize = bf.len - (pck - bf.ptr);