From b6468bd148f9fd4ce1f9581557e2b2b59594be2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Bandi=C4=87?= Date: Thu, 13 Jul 2023 19:51:08 +0200 Subject: [PATCH] Integration incoming and outgoing clients into one class - fix saving --- src/tcp_socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcp_socket.cpp b/src/tcp_socket.cpp index 49fe41e..c7fb05d 100644 --- a/src/tcp_socket.cpp +++ b/src/tcp_socket.cpp @@ -158,8 +158,8 @@ client::client(const string address, const ushort port, const uint timeout, SSL_ */ -client::client(const uint timeout, SSL_CTX* securefds) { - // srv = _srv; +client::client(const server *_srv, const uint timeout, SSL_CTX* securefds) { + srv = _srv; socklen_t len = sizeof(struct sockaddr_in); if ((conn = accept(srv->sock, (struct sockaddr *)&(srv->addr), (socklen_t*)&len)) < 0) {