/* $Id$
This file is part of libmspnet
-Copyright © 2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2008-2009 Mikkosoft Productions, Mikko Rasa
Distributed under the LGPL
*/
#ifdef WIN32
int err=WSAConnect(handle, &sa, size, 0, 0, 0, 0);
- if(err=SOCKET_ERROR)
+ if(err==SOCKET_ERROR)
{
int err_code=WSAGetLastError();
if(err_code==WSAEWOULDBLOCK)
if(err==0)
{
connected=true;
+ set_events(IO::P_INPUT);
signal_connect_finished.emit(0);
}