Re: [gtk-vnc-devel] [PATCH 4/4] Call WSAStartup / WSACleanup



On Wed, Oct 29, 2008 at 03:11:30PM +0000, Richard W.M. Jones wrote:
> On Windows (but not Wine[1]) you have to call WSAStartup before you
> can do any winsock [socket] functions.  If you don't do this then the
> socket functions will all fail with WSANOTINITIALISED.
> 
> You can call WSAStartup multiple times, but you also have to call
> WSACleanup once for each time you called WSAStartup.
> 
> This patch ensures that WSAStartup is called when the gtk-vnc widget
> is created, before any socket functions, and that WSACleanup is called
> when the gtk-vnc widget is deleted.

ACK, i see we have the same init calls in libvirt, which I'd missed 
when doing this for gtkvnc.


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]