implemented why2_chat_init_config in chat-server

This commit is contained in:
Václav Šmejkal 2023-04-20 21:35:41 +02:00
parent 03c8587c67
commit 2f1c9dfe75
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -25,6 +25,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <pthread.h>
#include <why2/chat/config.h>
#include <why2/chat/flags.h>
#include <why2/chat/misc.h>
@ -32,6 +33,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
int main(void)
{
why2_chat_init_config();
int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET
pthread_t thread;
size_t line_length_buffer = 0;