<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Live-devel] How to bypass streamlimit causes by Event</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>No problem. Thanks for your answer. <o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>It was not the problem to reimplement “createEventTrigger”,
“deleteEventTrigger”, “triggerEvent” and “SingleStep”. I did this first. But
this didn´t solve my problem. Windows make the trouble </span></font><font
size=2 color=navy face=Wingdings><span lang=EN-GB style='font-size:10.0pt;
font-family:Wingdings;color:navy'>J</span></font><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>Windows has a limitation of numbers of sockets
that can be open by one process. This is 64 ( 2 per stream = 32 stream clients ).
So I can create millions of EventTriggerID´s, it didn´t effect anything…<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>To solve this I only define FD_SETSIZE to a
higher value.<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>Viele Grüße / Best regards</span></font><font
color=navy><span lang=EN-GB style='color:navy'> </span></font><b><font size=2
color=black><span lang=EN-GB style='font-size:10.0pt;color:black;font-weight:
bold'><br>
</span></font></b><font size=2 color=black face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:black'>- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -<br>
</span></font><b><font size=1 color=black face=Arial><span lang=EN-GB
style='font-size:8.0pt;font-family:Arial;color:black;font-weight:bold'>Dipl.</span></font></b><b><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black;font-weight:bold'>-Inf. (FH)<br>
</span></font><strong><b><font color=navy face="Times New Roman"><U1:PERSONNAME u2:st="on"></U1:PERSONNAME><span
style='color:navy'>Daniel Fischer</span></font></b></strong></b><font size=1
color=navy face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:navy'><br>
</span></font><font size=1 color="#2e8889" face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:#2E8889'>iGuard - Development</span></font><font
size=1 color=navy face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 color="#2e8889" face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:#2E8889;font-weight:bold'>IDS</span></font></b><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> Imaging Development Systems GmbH<br>
Dimbacher Strasse 6-8 </span></font><font size=2 color="#2e8889" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#2E8889'>▪</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> D-74182 Obersulm<br>
Handelsregister: Stuttgart HRB 106225<br>
Geschäftsführer: Jürgen Hartmann, Armin Vogt, Torsten Wiesinger<br>
T :        +49 (0)7134 / 961 96-0<br>
F :        +49 (0)7134 / 961 96-99<br>
E :        <a
href="mailto:d.fischer@ids-imaging.de">d.fischer@ids-imaging.de</a></span></font><font
size=2 color=navy face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:navy'><br>
</span></font><font color=navy><span style='color:navy'><br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>Web: <a href="http://www.ids-imaging.com/"
title="http://www.ids-imaging.com/"><font size=3 color=navy
face="Times New Roman" title="http://www.ids-imaging.com/"><span
title="http://www.ids-imaging.com/"><span title="http://www.ids-imaging.com/"><span
style='font-size:12.0pt;font-family:"Times New Roman";color:navy;text-decoration:
none'><span title="http://www.ids-imaging.com/"><span
title="http://www.ids-imaging.com/">www.ids-imaging.com </span></span></span></font></span></span></a> - 
<a href="http://www.iguard.de/" title="http://www.iguard.de/"><font color=navy
title="http://www.iguard.de/"><span title="http://www.iguard.de/"><span
title="http://www.iguard.de/"><span style='color:navy;text-decoration:none'><span
title="http://www.iguard.de/"><span title="http://www.iguard.de/">www.iguard.de</span>
</span></span></span></font></span></a><br>
</span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'>- - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'> </span></font><b><font size=5 color=green
face=Webdings><span lang=ES style='font-size:20.0pt;font-family:Webdings;
color:green;font-weight:bold'>P</span></font></b><b><font size=2 color=navy
face=Arial><span lang=ES style='font-size:10.0pt;font-family:Arial;color:navy;
font-weight:bold'> </span></font></b><font size=1 color=green face=Tahoma><span
style='font-size:8.0pt;font-family:Tahoma;color:green'> </span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font><font size=1 color=green face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS";color:green'>Please consider
the environment before printing this e-mail</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com] <b><span
style='font-weight:bold'>Im Auftrag von </span></b>Ross Finlayson<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Donnerstag, 2. Juni 2011
04:06<br>
<b><span style='font-weight:bold'>An:</span></b> LIVE555 Streaming Media -
development & use<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Live-devel] How to
bypass streamlimit causes by EventTriggerIDs</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am using live555 to stream several network cameras. For
that I generate one RTSP-Server and for every camera a subsession on this
server with a new URL. To signal the TaskScheduler, that there is a new frame
for a stream, I use a EventTriggerID. Every stream has his own EventTriggerID.
Now I got the problem, that the EventTriggerID is generated by a bitmask
(0x80000000), and the line</span></font><o:p></o:p></p>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite cite>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font><o:p></o:p></p>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite cite>

<p class=MsoNormal><font size=2 color="#010001" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#010001'>"m_EventTriggerId</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>
=<font color="#010001"><span style='color:#010001'> envir</span></font>().<font
color="#010001"><span style='color:#010001'>taskScheduler</span></font>().<font
color="#010001"><span style='color:#010001'>createEventTrigger</span></font>(<font
color="#010001"><span style='color:#010001'>deliverFrame0</span></font>);"</span></font><o:p></o:p></p>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite cite>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font><o:p></o:p></p>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite cite>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>generates only 32 EventTriggerID´s, so that I have a maximum
of 32 stream receivers.</span></font><o:p></o:p></p>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite cite>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Now my question: Is it possible to solve that problem
without generating more RTSP-Server with different TaskScheduler on different
ports?</span></font><o:p></o:p></p>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Sorry for the long delay in responding to this.  (I've been
traveling for the past two months, and am way behind on email.)<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Note that the implementation of 'event triggers' that we provide (for
the "BasicTaskScheduler" class) is just one possible
implementation.  You can - if you wish - provide your own implementation,
by<o:p></o:p></span></font></p>

</div>

<div><x-tab>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>        </x-tab>1/ Defining a
subclass of "BasicTaskScheduler", and<o:p></o:p></span></font></p>

</div>

<div><x-tab>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>        </x-tab>2/ Reimplementing
the virtual functions<o:p></o:p></span></font></p>

</div>

<div><x-tab>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>        </x-tab><x-tab>       
</x-tab>virtual EventTriggerId createEventTrigger(TaskFunc* eventHandlerProc);<o:p></o:p></span></font></p>

</div>

<div><x-tab>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>        </x-tab><x-tab>       
</x-tab>virtual void deleteEventTrigger(EventTriggerId eventTriggerId);<o:p></o:p></span></font></p>

</div>

<div><x-tab>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>        </x-tab><x-tab>       
</x-tab>virtual void triggerEvent(EventTriggerId eventTriggerId, void*
clientData = NULL);<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Note that "EventTriggerId" must remain a
"u_int32_t", so you won't be able to change that.  So you won't
be able to continue to use it as a 'bit mask', if you want to support more than
32 triggers.  But you can implement event triggers any way you choose.<o:p></o:p></span></font></p>

</div>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'><x-sigsep>-- <o:p></o:p></span></font></pre>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</x-sigsep>Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>