diff -r 56a1ac7d931b -r 2046a1651c0b sources/network/udpsocket.cpp --- a/sources/network/udpsocket.cpp Sun Dec 14 19:42:43 2014 +0200 +++ b/sources/network/udpsocket.cpp Sun Dec 14 19:51:23 2014 +0200 @@ -70,13 +70,13 @@ METHOD UDPSocket::bind (unsigned short port) -> bool { - struct sockaddr_in svaddr; + sockaddr_in svaddr; memset (&svaddr, 0, sizeof svaddr); svaddr.sin_family = AF_INET; svaddr.sin_port = htons (port); svaddr.sin_addr.s_addr = htonl (INADDR_ANY); - if (::bind (m_socket, reinterpret_cast (&svaddr), sizeof svaddr) == -1) + if (::bind (m_socket, reinterpret_cast (&svaddr), sizeof svaddr) == -1) { m_error = String ("Couldn't bind to port ") + String::from_number (port); return false; @@ -93,7 +93,7 @@ sockaddr_in claddr; socklen_t socklen = sizeof claddr; int length = ::recvfrom (m_socket, g_huffmanBuffer, sizeof g_huffmanBuffer, 0, - reinterpret_cast (&claddr), &socklen); + reinterpret_cast (&claddr), &socklen); if (length == -1) {