Saphirac / ft_irc

MIT License
1 stars 1 forks source link

Time last message #24

Closed Saphirac closed 3 months ago

Saphirac commented 3 months ago

Add a routine to check time of last activity of a client. It that time exceed our defined TIMEOUT, send a PING to the client. If the client does not respond with the correct token in response, does not update it's time of last activity and if the TIMEOUT_SINCE_PING is exceeded, disconnect the client. Also added PING and PONG command + modified the doc.