UDP to the rescue
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user