<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Set max connection
number</title></head><body>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Does Live555 support
setting maximum connection number? If we set 5, the 6th connection
request will be refused.</font></blockquote>
<div><br></div>
<div>No; however, you could easily implement this yourself by
subclassing &quot;RTSPServer&quot; to include a connection counter,
and then managing this by reimplementing the virtual function
&quot;createNewClientSession()&quot;, and also using a virtual
destructor on your subclass.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial" size="-1">Can I get
active connection detailed information(includes each client IP
address)?</font></blockquote>
<div><br></div>
<div>Yes, this information is available in the
&quot;RTSPClientSession&quot; class (which you can also subclass if
you wish - e.g., to add more fields).&nbsp; In particular, the
client's IP address is in the &quot;fClientAddr&quot; field.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>