checking version on chat client&server startup

This commit is contained in:
Václav Šmejkal 2024-08-28 11:39:01 +02:00
parent 54b4ebe3e6
commit a5b6364c26
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ int main(void)
{
signal(SIGINT, exit_client); //HANDLE ^C
why2_check_version(); //CHECK FOR UPDATES
why2_chat_init_client_config(); //CREATE client.toml CONFIGURATION
why2_chat_init_keys(); //CREATE RSA KEYS

View File

@ -34,6 +34,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
int main(void)
{
why2_check_version(); //CHECK FOR UPDATES
why2_chat_init_server_config(); //CREATE server.toml CONFIGURATION
int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET