Обновлены коментарии в inet.h, добавлен блок для Алисы

This commit is contained in:
2026-04-17 23:23:38 +05:00
parent 5a399526da
commit 652c1e8291
14 changed files with 2781 additions and 34 deletions
+25
View File
@@ -1,3 +1,28 @@
//
// Created by Admin on 17.04.2026.
//
#include <sys/epoll.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#include <stdlib.h>
#include "unistd.h"
#include "inet.h"
int initConnection(
struct sockaddr_in* _ServerAddr,
int* _EPollFD,
int* _SocketFD,
const char* _ServerName,
uint16_t _ServerPort
) {
int res = EXIT_FAILURE;
if (!initServerAddres(_ServerAddr,_ServerName, _ServerPort)) {
if (!initDescriptors(_EPollFD, _SocketFD)) {
}
}
return res;
}