1
0
mirror of https://github.com/CPunch/Laika.git synced 2026-01-04 19:50:08 +00:00

Moved setPollIn flag to sLaika_socket from sLaika_peer

This commit is contained in:
2022-03-27 17:32:32 -05:00
parent e2e25f5a49
commit 5ece351025
5 changed files with 18 additions and 10 deletions

View File

@@ -56,7 +56,6 @@ struct sLaika_peer {
OSTYPE osType;
int outStart; /* index of pktID for out packet */
int inStart; /* index of pktID for in packet */
bool setPollOut; /* is EPOLLOUT/POLLOUT is set on sock's pollfd ? */
bool useSecure; /* if true, peer will transmit/receive encrypted data using inKey & outKey */
};

View File

@@ -77,6 +77,7 @@ struct sLaika_socket {
int outCap;
int inCap;
bool flipEndian;
bool setPollOut; /* is EPOLLOUT/POLLOUT is set on sock's pollfd ? */
};
#define laikaS_isAlive(arg) (arg->sock != INVALID_SOCKET)