1
0
forked from fsfw/fsfw

trying new udp stuff

This commit is contained in:
2021-03-12 00:34:30 +01:00
parent 67b05fee2e
commit 6e5b032dbb
5 changed files with 85 additions and 51 deletions

View File

@ -71,8 +71,7 @@ ReturnValue_t TcWinTcpServer::initialize() {
// tcpAddress.sin_family = AF_INET;
// tcpAddress.sin_addr.s_addr = htonl(INADDR_ANY);
retval = bind(listenerTcpSocket, reinterpret_cast<const sockaddr*>(&tcpAddress),
tcpAddrLen);
retval = bind(listenerTcpSocket, addrResult->ai_addr, static_cast<int>(addrResult->ai_addrlen));
if(retval == SOCKET_ERROR) {
sif::warning << "TcWinTcpServer::TcWinTcpServer: Binding socket failed!" <<
std::endl;