~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty-proposed

« back to all changes in this revision

Viewing changes to docs/reference/html/classGio_1_1SocketService.html

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2014-04-07 13:47:09 UTC
  • mfrom: (1.2.87)
  • Revision ID: package-import@ubuntu.com-20140407134709-wlrea1wrtuy9kpzw
Tags: 2.39.93-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 <tr style="height: 56px;">
19
19
  <td style="padding-left: 0.5em;">
20
20
   <div id="projectname">glibmm
21
 
   &#160;<span id="projectnumber">2.39.4</span>
 
21
   &#160;<span id="projectnumber">2.39.93</span>
22
22
   </div>
23
23
  </td>
24
24
 </tr>
509
509
 
510
510
<p>Check whether the service is active or not. </p>
511
511
<p>An active service will accept new clients that connect, while a non-active service will let connecting clients queue up until the service is started.</p>
512
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000181">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
512
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000177">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
513
513
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the service is active, <code>false</code> otherwise. </dd></dl>
514
514
 
515
515
</div>
565
565
<dl class="section user"><dt>Slot Prototype:</dt><dd><code>bool on_my_incoming(const Glib::RefPtr&lt;SocketConnection&gt;&amp; connection, const Glib::RefPtr&lt;Glib::Object&gt;&amp; source_object)</code></dd></dl>
566
566
<p>The <a class="el" href="classGio_1_1SocketService.html#a83f8517dbd5d47aca17ae1d473c62ef7">signal_incoming()</a> signal is emitted when a new incoming connection to <em>service</em> needs to be handled. The handler must initiate the handling of <em>connection</em>, but may not block; in essence, asynchronous operations must be used.</p>
567
567
<p><em>connection</em> will be unreffed once the signal handler returns, so you need to ref it yourself if you are planning to use it.</p>
568
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000182">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
568
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000178">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
569
569
<dl class="params"><dt>Parameters</dt><dd>
570
570
  <table class="params">
571
571
    <tr><td class="paramname">connection</td><td>A new <a class="el" href="classGio_1_1SocketConnection.html" title="A socket connection. ">SocketConnection</a> object. </td></tr>
592
592
 
593
593
<p>Starts the service, i.e. start accepting connections from the added sockets when the mainloop runs. </p>
594
594
<p>This call is thread-safe, so it may be called from a thread handling an incoming client request.</p>
595
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000179">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
595
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000175">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
596
596
 
597
597
</div>
598
598
</div>
611
611
 
612
612
<p>Stops the service, i.e. stops accepting connections from the added sockets when the mainloop runs. </p>
613
613
<p>This call is thread-safe, so it may be called from a thread handling an incoming client request.</p>
614
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000180">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
614
<p>Note that this only stops accepting new connections; it does not close the listening sockets, and you can call g_socket_service_start() again later to begin listening again. To close the listening sockets, call g_socket_listener_close(). (This will happen automatically when the <a class="el" href="classGio_1_1SocketService.html" title="Make it easy to implement a network service. ">SocketService</a> is finalized.)</p>
 
615
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000176">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
615
616
 
616
617
</div>
617
618
</div>
663
664
</div><!-- contents -->
664
665
<!-- start footer part -->
665
666
<hr class="footer"/><address class="footer"><small>
666
 
Generated on Mon Feb 17 2014 09:42:52 for glibmm by &#160;<a href="http://www.doxygen.org/index.html">
 
667
Generated on Sat Apr 5 2014 14:43:03 for glibmm by &#160;<a href="http://www.doxygen.org/index.html">
667
668
<img class="footer" src="doxygen.png" alt="doxygen"/>
668
669
</a> 1.8.4
669
670
</small></address>