sources/network/udpsocket.cpp

changeset 31
b5b5a6a96d91
parent 19
2046a1651c0b
child 56
b4caacf567af
equal deleted inserted replaced
30:21fba5183768 31:b5b5a6a96d91
96 reinterpret_cast<sockaddr*> (&claddr), &socklen); 96 reinterpret_cast<sockaddr*> (&claddr), &socklen);
97 97
98 if (length == -1) 98 if (length == -1)
99 { 99 {
100 if (errno != EWOULDBLOCK) 100 if (errno != EWOULDBLOCK)
101 m_error.sprintf ("recvfrom error: %s", strerror (errno)); 101 m_error = String ("recvfrom error: ") + strerror (errno);
102 102
103 return false; 103 return false;
104 } 104 }
105 105
106 unsigned char decodedPacket[MAX_DATAGRAM_LENGTH]; 106 unsigned char decodedPacket[MAX_DATAGRAM_LENGTH];

mercurial