No subject


Fri Sep 3 01:43:57 CEST 2010


order of registration, but it doesn=92t seem to work on Windows.



Maybe I am making the wrong assumptions here.

In my case I was able to fix the problem easily by defining only one close
handler ad handle the conditions inside of my handler.



Gernot Seidler
Software Architect

*Egenera Inc. | Converge. Unify. Simplify.=99 *

508-858-3185 (office)
508-481-3114 (fax)

*http:*//www.egenera.com
 <http://www.egenera.com/>http://blog.egenera.com

--000e0cd30ff8a70dc70493a75d34
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
-->
</style>

</head>

<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">

<div class=3D"WordSection1">

<p class=3D"MsoNormal">Hi,</p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">According to the documentation a vortex application =
could assign
multiple connection close handlers using the </p>

<p class=3D"MsoNormal">vortex_connection_set_on_close; vortex_connection_se=
t_on_close_full
and vortex_connection_set_on_close_full2 APIs.</p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">From the code I gathered that any handler set by <i>=
vortex_connection_set_on_close</i>
is executed first and then the list of handler set by the =A0vortex_connect=
ion_set_on_close_full
and vortex_connection_set_on_close_full2 APIs. I expected that the handlers=
 are
executed in the order of registration:</p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">Example:</p>

<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;
font-family:Consolas">vortex_connection_set_on_close =A0=A0 <span style=3D"=
color:fuchsia">(</span>conn<span style=3D"color:fuchsia">,</span>
on_close_handler <span style=3D"color:fuchsia">);</span></span></p>

<p class=3D"MsoNormal">vortex_connection_set_on_close_full ( conn,
on_close_notify_handler1, user_data );=A0 </p>

<p class=3D"MsoNormal">vortex_connection_set_on_close_full ( conn,
on_close_notify_handler2, user_data );=A0 </p>

<p class=3D"MsoNormal">=85</p>

<p class=3D"MsoNormal">//last handler</p>

<p class=3D"MsoNormal">vortex_connection_set_on_close_full2 ( conn,
on_close_cleanup_handler, axl_true, user_data )</p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">I confirmed that the <i><span style=3D"font-size:9.5=
pt;
font-family:Consolas">on_close_handler (registered by </span></i><span styl=
e=3D"font-size:9.5pt;font-family:Consolas">vortex_connection_set_on_close)<=
/span>
is called first, but the order of execution of the vortex_connection_set_on=
_close_full
handlers seems to be arbitrary. From the code and doc. it appears the inten=
t
was to execute the handlers in order of registration, but it doesn=92t seem
to work on Windows. </p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">Maybe I am making the wrong assumptions here. </p>

<p class=3D"MsoNormal">In my case I was able to fix the problem easily by d=
efining
only one close handler ad handle the conditions inside of my handler. </p>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">Gernot
Seidler<br>
Software Architect</span></p>

<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">Egenera
Inc. | Converge. Unify. Simplify.=99 </span></b><span style=3D"font-size:
10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">508-858-3185
(office)<br>
508-481-3114 (fax)</span></p>

<p class=3D"MsoNormal"><u><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;
color:blue">http:</span></u><span style=3D"font-size:10.0pt;font-family:&qu=
ot;Tahoma&quot;,&quot;sans-serif&quot;;
color:blue"><a href=3D"http://www.egenera.com/" title=3D"http://www.egenera=
.com/"><span style=3D"color:blue">//www.egenera.com</span><span style=3D"co=
lor:black"><br>
</span></a><a href=3D"http://blog.egenera.com/"><span style=3D"color:blue">=
http://blog.egenera.com</span></a></span></p>

<p class=3D"MsoNormal">=A0</p>

</div>

</body>

</html>

--000e0cd30ff8a70dc70493a75d34--


More information about the Vortex mailing list