[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Windows and bufferevent_socket_connect
- To: Libevent-users@xxxxxxxx
- Subject: [Libevent-users] Windows and bufferevent_socket_connect
- From: Andre <andreapfel@xxxxxxxxx>
- Date: Fri, 23 Jan 2015 03:35:16 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: Libevent-users@xxxxxxxx
- Delivery-date: Thu, 22 Jan 2015 21:35:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=6j2Ly+zM3GBeBkEFKlRHJoX02gfi4Mq28bTVsW5p7QY=; b=P78L7v4m3q5ZVxSlrfxmullmaomFiV7ZBIk4MGzNBTTwEL07ZF4HxCJYIrCNrzHOSc w3oFgbb8Gdzee8lbFZ4wYcTHjBulv63sDPedu6X/o1W7JJFFy9VlSfYY9YLD2bOdOo1c K6X5i5lzZkA+10jeWyb5On/woDN19feeRlALIO/IcbmmUdaS13TPz3U9YiWgab80Ll/D mlHNIr89I1xs2g3h9RfkMDoExnsESZ9aKo9rfgUn4W3/GTjcuxjDjbSJRLQB6m8qHofW tW7pxOfLH61uHk90qvJ675D/gv/w5SgZN4Z2wAWm+bxVWEKM7erffXXsb+Y9UPjvg18A vEWA==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
Hello
I have a project that works perfectly in Ubuntu. But I want to port it
to Windows. So I compiled it with MinGW for Windows and no errors
occurred while compiling.
Then I tried to run it in Windows. It runs fine until there is an
unexpected error: I could find out that the return value of
bufferevent_socket_connect is < 0 which never happened in Ubuntu before.
Do you know why the same function call returns 0 for Ubuntu and -1 for
Windows? If you don't, do you know a way to get to know what went wrong?
I called WSAStartup and I allowed the program in the Windows built-in
firewall.
I am using Libevent 2.0.21-stable.
Thank you for your time and best wishes, Andre.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.