PIEthernet more accuracy construct

PIThread windows fix
This commit is contained in:
2024-09-17 16:11:18 +03:00
parent e186e0adff
commit bdd18b614f
4 changed files with 30 additions and 16 deletions

View File

@@ -472,7 +472,7 @@ protected:
virtual void received(const void * data, int size) { ; }
void construct();
bool init();
void init();
bool openDevice() override;
bool closeDevice() override;
void closeSocket(int & sd);
@@ -481,8 +481,8 @@ protected:
void applyOptInt(int level, int opt, int val);
PRIVATE_DECLARATION(PIP_EXPORT)
int sock, sock_s;
std::atomic_bool connected_, connecting_, listen_threaded, server_bounded;
int sock = -1, sock_s = -1;
std::atomic_bool connected_ = {false}, connecting_ = {false}, listen_threaded = {false}, server_bounded = {false};
bool is_server_client = false;
mutable PINetworkAddress addr_r, addr_s, addr_lr;
Type eth_type;