request modification

"Neelam Kumar Sharma" <[email protected]> 8 Aug 2015 06:22:11 -0000
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
--===============7176020679562300822==
Content-Type: multipart/alternative;
	boundary="=_cb337469fb48467957f99598e1950e97"

--=_cb337469fb48467957f99598e1950e97
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="UTF-8"

Hi Team,

When we register an event, request address is stores as data of the event as follow

&nbsp;event = makeFdEvent(fd,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (operation &amp; IO_MASK) == IO_WRITE ?
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POLLOUT : POLLIN,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do_scheduled_stream,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sizeof(StreamRequestRec), &amp;request);


When event occurs, do_scheduled_stream() is called and request is again retrieved as follow

StreamRequestPtr request = (StreamRequestPtr)&amp;event-&gt;data;

I believe that, no one is modifying the request between these two calls, Can you please give some clarification on it ? I mainly concerned about the "request-&gt;offset"&nbsp; ? 

Thanks and Regards,

NEELAMKUMR SHARMA
--=_cb337469fb48467957f99598e1950e97
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"

Hi Team,<br><br>When we register an event, request address is stores as dat=
a of the event as follow<br><br>&nbsp;event =3D makeFdEvent(fd,<br>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (operation &amp; IO=
_MASK) =3D=3D IO_WRITE ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; POLLOUT : POLLIN,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; do_scheduled_stream,<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sizeof(StreamRequestRec), &amp;requ=
est);<br><br><br>When event occurs, do_scheduled_stream() is called and req=
uest is again retrieved as follow<br><br>StreamRequestPtr request =3D (Stre=
amRequestPtr)&amp;event-&gt;data;<br><br>I believe that, no one is modifyin=
g the request between these two calls, Can you please give some clarificati=
on on it ? I mainly concerned about the "request-&gt;offset"&nbsp; ? <br><b=
r>Thanks and Regards,<br>
NEELAMKUMR SHARMA<br><A HREF=3D"https://sigads.rediff.com/RealMedia/ads/cli=
ck_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target=3D"_blank"><=
IMG SRC=3D"https://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.redi=
ffmail.com/signatureline.htm@Middle"></A><table cellpadding=3D"0" cellspaci=
ng=3D"0"><tbody><tr><td><div style=3D"font-family: Arial, Helvetica, sans-s=
erif; font-size:14px">Get your own <span style=3D"padding-bottom: 0px; back=
ground-color: #cc0000; padding-left: 3px; padding-RIGHT: 3px; font-family: =
Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top:=
 0px"><b>FREE</b></span> website,  <span style=3D"padding-bottom: 0px; back=
ground-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Ari=
al, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0p=
x"><b>FREE</b></span> domain &amp; <span style=3D"padding-bottom: 0px; back=
ground-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Ari=
al, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0p=
x"><b>FREE</b></span> mobile app with Company email. &nbsp;</div></td><td><=
a href=3D"http://track.rediff.com/click?url=3D___http://businessemail.redif=
f.com?sc_cid=3Dsign-1-10-13___&cmp=3Dhost&lnk=3Dsign-1-10-13&nsrv1=3Dhost" =
style=3D"font-family: Arial, Helvetica, sans-serif; color: #fff; font-size:=
 14px; color:#0000cc" target=3D"_blank"><b>Know More ></b></a><!-- <in-put =
type=3D"button" cl-ass=3D"button" on-click=3D"parent.location=3D&#39;http:/=
/track.rediff.com/click?url=3D___http://businessemail.rediff.com/company-em=
ail-hosting-services?sc_cid=3Dsignature-23-9-13___&amp;cmp=3Dsignature-23-9=
-13&amp;lnk=3Dmypagelogout&amp;nsrv1=3Dhost&#39;" value=3D"Know more &gt;">=
 </input> --></td></tr></tbody></table>
--=_cb337469fb48467957f99598e1950e97--


--===============7176020679562300822==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============7176020679562300822==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

--===============7176020679562300822==--