Groups > Browsers > Opera Browser Technical topics > Re: Opera and Winsock2




Opera and Winsock2

Opera and Winsock2
Tue, 17 Jul 2007 10:27:01 +010
Hi there,

I'm working on a Winsock LSP and I'm finding problems with Opera.  It looks 
like Opera isn't using Winsock2 by default, which means it's not using the 
LSP.

I'm after a way to make Opera use Winsock2, but neither of the methods I've 
found so far work.

I've tried both:

[Adv User Prefs]
Force Winsock2 API=  (0 = Opera determines Winsock version (default), 1 = 
Winsock2)

and turning off Synchronous DNS lookups.  Neither do what I'd hoped.

Does anyone have any information on how best to achieve this?
Thanks in advance,

Rik

Post Reply
Re: Opera and Winsock2
Tue, 17 Jul 2007 14:29:00 +010
Hi,

Thanks for the quick reply.

> Opera is using Winsock 2 by default, provided that the right versions are
> returned and the WS2_32.ddl file can be found and be loaded correctly.

Do you mean DLL rather than DDL?  I've got the standard version that ships 
with XP installed:
(v5.1.2600.2180), is that the version you meant?

My LSP is working perfectly with all other browsers, hence me wondering if 
my installation of Opera was using Winsock 1.

> The preference you tried is no longer in use.

I'd noticed it was from older patch notes, but I'd hoped it was still 
relevant.  Thanks for the clarification. 

Post Reply
Re: Opera and Winsock2
Tue, 17 Jul 2007 14:51:47 +020
On Tue, 17 Jul 2007 10:27:01 +0100, "Rik Barker"
<rik.barker@visionsoft.com>
wrote:

>Hi there,
>
>I'm working on a Winsock LSP and I'm finding problems with Opera.  It looks

>like Opera isn't using Winsock2 by default, which means it's not using the 
>LSP.
>
>I'm after a way to make Opera use Winsock2, but neither of the methods I've

>found so far work.

Opera is using Winsock 2 by default, provided that the right versions are
returned and the WS2_32.ddl file can be found and be loaded correctly.

The preference you tried is no longer in use.
Post Reply
Re: Opera and Winsock2
Tue, 17 Jul 2007 22:39:34 +020
On Tue, 17 Jul 2007 14:29:00 +0100, "Rik Barker"
<rik.barker@visionsoft.com>
wrote:

>Hi,
>
>Thanks for the quick reply.
>
>> Opera is using Winsock 2 by default, provided that the right versions
are
>> returned and the WS2_32.ddl file can be found and be loaded correctly.
>
>Do you mean DLL rather than DDL?  I've got the standard version that ships 

Oops! Yes.

>with XP installed:
>(v5.1.2600.2180), is that the version you meant?

I am referring to the Winsock version returned by WSAStartup

>My LSP is working perfectly with all other browsers, hence me wondering if 
>my installation of Opera was using Winsock 1.

It could be that your implementation is only hooked into functionality that
Opera does not use. There is quite a lot of functionality in Winsock 2 that is
not necessary for a browser, AFAICT.

I guess you have already seen this article from 1999 (or something similar):

<URL: http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx
>
Post Reply
Re: Opera and Winsock2
Wed, 18 Jul 2007 13:06:55 +010
Hi,
> I am referring to the Winsock version returned by WSAStartup

I'd expect 2.2, but I'll check.  As I said, the LSP is working fine with 
IE7, IE6 and Firefox.  Just not with Opera.

> It could be that your implementation is only hooked into functionality 
> that
> Opera does not use. There is quite a lot of functionality in Winsock 2 
> that is
> not necessary for a browser, AFAICT.

I'd have expected it to fail for all browsers if that were the case.  It's 
not hooking anything unusual.  The main hook is in WSPRecv, and I'd be 
surprised if that wasn't being used by Opera.

> <URL:
http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx 
>  >

Yes.  Far too often.  :-)

Thanks for your thoughts

Post Reply
about | contact