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>GetConnectionRole</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>::GetConnectionRole</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nn/ir/CTR/ConnectionRole.html">ConnectionRole</a> GetConnectionRole(
15     void
16);
17</pre>
18    </div>
19<h2>Parameters</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">Returns a value indicating the local system's role in the connection process. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Gets the connection role.</p><p>If connection was established by executing the <CODE>RequireConnection</CODE> function, this function returns <CODE>CONNECTION_ROLE_TO_REQUIRE</CODE>.</p><p>If connection was established by executing the <CODE>WaitConnection</CODE> function, this function returns <CODE>CONNECTION_ROLE_TO_WAIT</CODE>.</p><p>With the <CODE>AutoConnection</CODE> function, if this system was the partner that made the connection request and thereby established the connection, this function returns <CODE>CONNECTION_ROLE_TO_REQUIRE</CODE>. If, on the other hand, this system was the partner that accepted the connection, this function returns <CODE>CONNECTION_ROLE_TO_WAIT</CODE>.</p><!-- write here --></div>
28<h2>Revision History</h2>
29    <div class="section">
30      <dl class="history">
31        <dt>2011/10/05</dt>
32<dd>Removed unnecessary text.<br />
33        </dd>
34        <dt>2011/08/30</dt>
35<dd>Initial version.<br />
36        </dd>
37      </dl>
38    </div>
39  <hr><p>CONFIDENTIAL</p></body>
40</html>