Re: How to set the socket Readabilty status?
- From: "Volodymyr M. Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Thu, 5 Jun 2008 11:15:21 +0200
Let me again explain all possible variants in general.
As far as I understood, you are going to redirect all browesers into
different urls on a system. This can be accomplished using following
methods:
1. Writing extension plugins for browersers (BHO for IE and probably some
other plugins for Firefox, Opera and others). Pluses: simple. Minuses: you
have to write each plugin for browser.
2. Writing an LSP. Pluses: User Mode; you cover many applications by just
one lsp. Minuses: need to parse protocol; if bug happens, all system is
unstable.
3. Writing TDI filters which handles TDI_CONNECT and simply change the IP
and Port in parameters structure for IRP. Pluses: easy to do. Minuses:
kernel mode, deprication of TDI, would not work in Vista because the network
stack is different, so changing the params of IRP does not make any effect
4. Hooking functions for a specified application. Pluses: user mode, less
implementation time. Minuses: unodocumented approach, need to analyze the
import table of executable, need to hook multiple functions (recv, wsarecv,
wsprecv), no garantee that this method will be working fine, because the
binary of application can be changed, and the "ambient" might change as
well, this can bring some hidden bugs.
If you follow the suggestion number 4, you can choose whatever dirty method
to force FireFox to think that there is data, at any case this solution is
unrelyable once you started to hook functions.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
<CyberPK@xxxxxxxxx> wrote in message
news:2dab3fdc-b92c-464e-8dda-03cad32f0e8f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 5 Giu, 10:00, "Volodymyr M. Shcherbyna"
<v_scherb...@xxxxxxxxxxxxxxx> wrote:
Still need another solution different from LSP?
If you just need a redirection to another page, I would start from
writing a
BHO for IE that tracks BeforeNavigate event, and just redirects the page
basing on some rules. But this works only for IE. However, you can see
Firefox plugins specifications to see if this is possible.
If you need something multi broweser you need to do LSP.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.<Cybe...@xxxxxxxxx> wrote in message
news:e4f68cb7-4057-4de9-8759-77b3573ebae2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 5 Giu, 09:31, "Volodymyr M. Shcherbyna"
<v_scherb...@xxxxxxxxxxxxxxx> wrote:
Yes, of course. Do a legal LSP and do not struggle with undocumented
solutions.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.<Cybe...@xxxxxxxxx> wrote in message
news:9dc50382-2c68-44a4-912e-9fdb7c2f57ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 4 Giu, 23:07, "Volodymyr M. Shcherbyna"
<v_scherb...@xxxxxxxxxxxxxxx> wrote:
With your original design: intercept the WSPSelect and fake the
read
fds
so
that the function will call WSPRecieve.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.<Cybe...@xxxxxxxxx> wrote in message
news:66c4bc40-efb9-474f-ae88-1523cfa8602d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I need to modify a socket readability status.
I know if it is readable with the Select() function, but how i
can
set
it?
I've already thinked it. There isn't any other way?
There is any other way to intercept a send and redirect to another
page??
If yes please tell me, so i'll not struggle.
And to do what i want to do there is only a way? Intercept the
WSPSelect? Or there way to set directly the socket readable?
.
- References:
- How to set the socket Readabilty status?
- From: CyberPK
- Re: How to set the socket Readabilty status?
- From: Volodymyr M. Shcherbyna
- Re: How to set the socket Readabilty status?
- From: CyberPK
- Re: How to set the socket Readabilty status?
- From: Volodymyr M. Shcherbyna
- Re: How to set the socket Readabilty status?
- From: CyberPK
- Re: How to set the socket Readabilty status?
- From: Volodymyr M. Shcherbyna
- Re: How to set the socket Readabilty status?
- From: CyberPK
- How to set the socket Readabilty status?
- Prev by Date: Re: How to set the socket Readabilty status?
- Next by Date: NTFS and share permission
- Previous by thread: Re: How to set the socket Readabilty status?
- Next by thread: NTFS and share permission
- Index(es):
Relevant Pages
|