Still trying to fix getpeername (works fine on Windows)...

This commit is contained in:
lotodore
2009-04-10 23:28:33 +00:00
parent 13eea26cdc
commit c732bd28f0
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -18,10 +18,14 @@
***************************************************************************/
#include <net/connectdata.h>
#include <memory>
using namespace std;
ConnectData::ConnectData()
: m_sockfd(INVALID_SOCKET), m_peerAddrSize(sizeof(m_peerAddr))
{
memset(&m_peerAddr, 0, sizeof(m_peerAddr));
}
ConnectData::~ConnectData()