On 1/30/07, Maxim Zaikin <[EMAIL PROTECTED]> wrote:
>// +2 win32 handle
...
> It's my fix
...
>     pthread_mutex_destroy(&arg.mutex);
>     pthread_cond_destroy(&arg.cv);

Thanks. I uploaded a patch to darcs, but I believe I have broken the
win32 port earlier with "su_port refactoring" patches.

There is now a limitation of 64 sockets that sofia-sip can handle
concurrently on win32. I have a few ides how to fix that, but it most
probably would mean breaking the binary compatibility on win32. I hope
that is not a major issue.

How we can fix the socket limit on win32? My plan is to typedef
su_wait_t as struct pollfd even on win32, or rather use the WSAPOLLFD
structure   <http://msdn2.microsoft.com/en-us/library/ms740094.aspx>

1) use WSASelectEvents() but bind several sockets to a single event.
The question is, is it possible to do that?

2) use WSAAsyncSelect(). Since that would include window handles, some
help would be required as my windows coding skills are from early 90s.
As an added bonus, we could integrate su_root_t mainloop into the
windows mainloop. Whee.

3) use WSAPoll() and deprecate everything before XP SP3.

At the same time we could get rid of pthread stuff on windows and use
the native threads and mutexes or "critical sections". My main concern
there is the condition variables, can we use Events instead of them?

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to