1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use non-blocking connect() call.

Exploit connect() error codes to determine whether connection was
established. Using poll/select proved to be problematic.
This commit is contained in:
Bartosz Taudul
2020-05-14 02:27:04 +02:00
parent b166451750
commit d10ef8c501
2 changed files with 93 additions and 7 deletions
+5
View File
@@ -6,6 +6,7 @@
#include "TracyForceInline.hpp"
struct addrinfo;
struct sockaddr;
namespace tracy
@@ -61,6 +62,10 @@ private:
char* m_bufPtr;
std::atomic<int> m_sock;
int m_bufLeft;
struct addrinfo *m_res;
struct addrinfo *m_ptr;
int m_connSock;
};
class ListenSocket