1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7<title>WaitConnection</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/ir/Overview.html">ir</a>::<a href="../../../../nn/ir/CTR/Overview.html">CTR</a>::<a href="../../../../nn/ir/CTR/Communicator/Overview.html">Communicator</a>::WaitConnection</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nn/Result/Overview.html">Result</a> WaitConnection();
15
16static <a href="../../../../nn/Result/Overview.html">Result</a> WaitConnection(
17     <a href="../../../../nn/fnd/TimeSpan/Overview.html">nn::fnd::TimeSpan</a> sendReplyDelay
18);
19</pre>
20    </div>
21<h2>List of Overloaded Member Functions</h2>
22    <div class="section">
23      <table class="members">
24        <tr>
25          <td>
26<a href="./WaitConnection(0).html"><CODE>WaitConnection( )</CODE> </a>
27          </td>
28<td>Waits for a connection request and then tries making an authenticated connection.</td>
29        </tr>
30        <tr>
31          <td>
32<a href="./WaitConnection(1).html"><CODE>WaitConnection(nn::fnd::TimeSpan)</CODE> </a>
33          </td>
34<td>Waits for a connection request and then tries making an authenticated connection.</td>
35        </tr> </table>
36    </div>
37<h2>Description of <CODE>WaitConnection( )</CODE></h2>
38<div class="section"><p>This function returns control before connection authentication with the partner is completed.</p><p>When a connection request is received, this function returns a connection reply to the partner <a href="../../../../nn/ir/CTR/Overview.html">CTR</a> system and then transitions to the connected state. This function will wait until a connection request arrives. If you want to abort the process call the <CODE>Disconnect</CODE> function. </p><p>If the connection succeeds, this is signaled by the event returned by the <CODE>GetConnectionStatusEvent</CODE> function. </p><p>The system always waits after connection authentication. If data have been provided by the <CODE>Send</CODE> function, the system sends the data packets after it has received all incoming data and then waits again.</p><p>If the size of the region used to save incoming and outgoing packets&mdash;as passed to the <CODE>Initialize</CODE> function&mdash;is smaller than that defined by <CODE>NECESSARY_BUFFER_SIZE_FOR_CONNECTION</CODE> or if the size of the region used to manage packets is smaller than <CODE>GetManagementSize(1)</CODE>, the connection cannot be authenticated and this function fails.</p><!-- write here --></div>
39<h2>Description of <CODE>WaitConnection(nn::fnd::TimeSpan)</CODE></h2>
40<div class="section"><p>When a connection request is received, waits to send a connection reply for at least the time specified by <CODE>sendReplyDelay</CODE>.</p><!-- write here --></div>
41  <hr><p>CONFIDENTIAL</p></body>
42</html>