Re: [Libevent-users] Integrate Windows I/O Completion Port into Libevent

2008-06-03 Thread liusifan

Mostly test cases of regress.c are passed.
These are some changes since the libevent-1.4.4-iocp.zip
Please check the diff file as attachment.

The following test cases are failure or cann't be compiled.
I will pay more time to get these test cases to pass.

test_bufferevent_watermarks();   fail, block on WSAWaitForMultipleEvents
test_multiple(); fail, block on WSAWaitForMultipleEvents
test_persistent();   fail, block on WSAWaitForMultipleEvents

http_suite();fail on http.c::name_from_addr , vc6 has't 
getnameinfo function
rpc_suite(); it seem so complex to complile, give up
rpc_test();  same as above
dns_suite(); cannot compile evdns.c, because vc6's 
winsock2.h is too old


Test result of regress.c

evutil_stroll: OK
Testing Priorities 1: OK
Testing Priorities 2: OK
Testing Priorities 3: OK
Testing Evbuffer: OK
Testing evbuffer_find 1: OK
Testing evbuffer_find 2: OK
Testing evbuffer_find 3: OK
Bufferevent: OK
Free active base: OK
Event base new: OK
Simple read: OK
Simple write: OK
Combined read/write: OK
Simple timeout: OK
Loop exit: OK
Loop break: OK
Loop Multiple exit: OK
Multiple events for same fd: OK
Want read only once: OK
Testing Tagging:
encoded 0x0af0 with 2 bytes
encoded 0x1000 with 3 bytes
encoded 0x0001 with 1 bytes
encoded 0xdeadbeef with 5 bytes
encoded 0x with 1 bytes
encoded 0x00bef000 with 4 bytes
??: OK
??: OK
encoded 0x0af0 with 2 bytes
encoded 0x1000 with 2 bytes
encoded 0x0001 with 1 bytes
encoded 0xdeadbeef with 5 bytes
encoded 0x with 1 bytes
encoded 0x00bef000 with 4 bytes
??: OK
OK



diff.txt
Description: Binary data
___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users


Re: [Libevent-users] libevent on windows: select() fails

2008-06-03 Thread Shiqing Fan

Hi all,

I'm testing Libevent 1.3 with VS2005 on Windows.

The same problem below there happens on my machine, select() always 
returns -1. Does anyone know the reason?  Sorry for polling this old 
mail up, I just found someone has asked the same question that I got, 
but no answer.  Thanks a lot.



Regards,
Shiqing


But when I run 'event-test', it seems to die at select():

   V:\dev\libevent-svn\WIN32-Prj\event_test\Debug>event_test.exe
   [msg] libevent using: win32
   [debug] event_add: event: 002DFF1C, EV_READ   call 00433CE0
   [debug] win32_insert: adding event for 916
   [debug] win32_dispatch: select returned -1

Any idea why it would do that, and what I can do to fix it? I would 
really like to start using libevent on windows.


Cheers,
Bas Verhoeven

___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users




--
--
Shiqing Fan 
http://www.hlrs.de/people/fan

High Performance ComputingTel.: +49 711 685 87234
  Center Stuttgart (HLRS)Fax.: +49 711 685 65832
POSTAL:Nobelstrasse 19email: [EMAIL PROTECTED] 


ACTUAL:Allmandring 30
70569 Stuttgart

___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users


Re: [Libevent-users] libevent on windows: select() fails

2008-06-03 Thread Nick Mathewson
On Tue, Jun 03, 2008 at 07:08:57PM +0200, Shiqing Fan wrote:
> Hi all,
> 
> I'm testing Libevent 1.3 with VS2005 on Windows.
> 
> The same problem below there happens on my machine, select() always 
> returns -1. Does anyone know the reason?  Sorry for polling this old 
> mail up, I just found someone has asked the same question that I got, 
> but no answer.  Thanks a lot.

Sometimes this means that you haven't called WSAStartup ?  Winsock wants
to be initialized.


___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users


Re: [Libevent-users] libevent on windows: select() fails

2008-06-03 Thread Bas Verhoeven

Shiqing Fan wrote:

Hi all,

Hi,


I'm testing Libevent 1.3 with VS2005 on Windows.

The same problem below there happens on my machine, select() always 
returns -1. Does anyone know the reason?  Sorry for polling this old 
mail up, I just found someone has asked the same question that I got, 
but no answer.  Thanks a lot.
I believe the problem was that select() does not work on file 
descriptors on Windows, as it does on *NIX systems.


Cheers,
Bas Verhoeven



Regards,
Shiqing


But when I run 'event-test', it seems to die at select():

   V:\dev\libevent-svn\WIN32-Prj\event_test\Debug>event_test.exe
   [msg] libevent using: win32
   [debug] event_add: event: 002DFF1C, EV_READ   call 00433CE0
   [debug] win32_insert: adding event for 916
   [debug] win32_dispatch: select returned -1

Any idea why it would do that, and what I can do to fix it? I would 
really like to start using libevent on windows.


Cheers,
Bas Verhoeven

___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users






___
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users