change typedef

This commit is contained in:
2025-01-24 10:49:08 +01:00
parent ec7b293bd5
commit 8ffb7c10d5
3 changed files with 18 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
#include "TcpSocket.hpp"
#include <arpa/inet.h>
#include <sys/socket.h>
@@ -95,8 +96,6 @@ namespace TcpSocket
return sock;
}
typedef std::function<void(int sock, sockaddr_in newSocketInfo)> OnNewConnectionCallBack;
int listent(const char *host, uint16_t port, OnNewConnectionCallBack callback)
{
sockaddr_in address;