File: structbrlapi__connectionSettings__t.html

package info (click to toggle)
brltty 6.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 35,776 kB
  • sloc: ansic: 150,447; java: 13,484; sh: 9,667; xml: 5,702; tcl: 2,634; makefile: 2,328; awk: 713; lisp: 366; python: 321; ml: 301
file content (133 lines) | stat: -rw-r--r-- 8,675 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BrlAPI: brlapi_connectionSettings_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">BrlAPI<span id="projectnumber">&#160;0.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',false,false,'search.php','Search',false);
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">brlapi_connectionSettings_t Struct Reference<div class="ingroups"><a class="el" href="group__brlapi__connection.html">Connecting to BrlAPI</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Settings structure for <em>BrlAPI</em> connection.  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="brlapi_8h_source.html">brlapi.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a2852eb381cfe217a66c5bc1e296fae29" id="r_a2852eb381cfe217a66c5bc1e296fae29"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2852eb381cfe217a66c5bc1e296fae29">auth</a></td></tr>
<tr class="separator:a2852eb381cfe217a66c5bc1e296fae29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a196bef2693f763f07af38da73bae3684" id="r_a196bef2693f763f07af38da73bae3684"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a196bef2693f763f07af38da73bae3684">host</a></td></tr>
<tr class="separator:a196bef2693f763f07af38da73bae3684"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This structure holds every parameter needed to connect to <em>BrlAPI:</em> which file the authorization key can be found in and which computer to connect to.</p>
<dl class="section user"><dt>Examples:</dt><dd><div class="fragment"><div class="line"><a class="code hl_struct" href="structbrlapi__connectionSettings__t.html">brlapi_connectionSettings_t</a> settings;</div>
<div class="line"> </div>
<div class="line">settings.<a class="code hl_variable" href="#a2852eb381cfe217a66c5bc1e296fae29">auth</a>=<span class="stringliteral">&quot;/etc/brlapi.key&quot;</span>;</div>
<div class="line">settings.<a class="code hl_variable" href="#a196bef2693f763f07af38da73bae3684">host</a>=<span class="stringliteral">&quot;foo&quot;</span>;</div>
<div class="ttc" id="astructbrlapi__connectionSettings__t_html"><div class="ttname"><a href="structbrlapi__connectionSettings__t.html">brlapi_connectionSettings_t</a></div><div class="ttdoc">Settings structure for BrlAPI connection.</div><div class="ttdef"><b>Definition</b> brlapi.h:214</div></div>
<div class="ttc" id="astructbrlapi__connectionSettings__t_html_a196bef2693f763f07af38da73bae3684"><div class="ttname"><a href="#a196bef2693f763f07af38da73bae3684">brlapi_connectionSettings_t::host</a></div><div class="ttdeci">const char * host</div><div class="ttdef"><b>Definition</b> brlapi.h:232</div></div>
<div class="ttc" id="astructbrlapi__connectionSettings__t_html_a2852eb381cfe217a66c5bc1e296fae29"><div class="ttname"><a href="#a2852eb381cfe217a66c5bc1e296fae29">brlapi_connectionSettings_t::auth</a></div><div class="ttdeci">const char * auth</div><div class="ttdef"><b>Definition</b> brlapi.h:222</div></div>
</div><!-- fragment --></dd></dl>
<p><em>libbrlapi</em> will read authorization key from file <code>/etc/brlapi</code>.key and connect to the machine called "foo", on the default TCP port.</p>
<div class="fragment"><div class="line">settings.<a class="code hl_variable" href="#a196bef2693f763f07af38da73bae3684">host</a>=<span class="stringliteral">&quot;10.1.0.2&quot;</span>;</div>
</div><!-- fragment --><p>lets directly enter an IP address instead of a machine name.</p>
<div class="fragment"><div class="line">settings.<a class="code hl_variable" href="#a196bef2693f763f07af38da73bae3684">host</a>=<span class="stringliteral">&quot;:1&quot;</span>;</div>
</div><!-- fragment --><p>lets <em>libbrlapi</em> connect to the local computer, on port BRLAPI_SOCKETPORTNUM+1</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__brlapi__connection.html#gacd26dc42640bdad09a389be10b9e3618">brlapi_openConnection()</a> </dd></dl>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a2852eb381cfe217a66c5bc1e296fae29" name="a2852eb381cfe217a66c5bc1e296fae29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2852eb381cfe217a66c5bc1e296fae29">&#9670;&#160;</a></span>auth</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* brlapi_connectionSettings_t::auth</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>For security reasons, <em>libbrlapi</em> has to get authorized to connect to the <em>BrlAPI</em> server. This can be done via a secret key, for instance. This is the path to the file which holds it; it will hence have to be readable by the application.</p>
<p>Setting <code>NULL</code> defaults it to local installation setup or to the content of the BRLAPI_AUTH environment variable, if it exists. </p>

</div>
</div>
<a id="a196bef2693f763f07af38da73bae3684" name="a196bef2693f763f07af38da73bae3684"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a196bef2693f763f07af38da73bae3684">&#9670;&#160;</a></span>host</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* brlapi_connectionSettings_t::host</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This tells where the <em>BrlAPI</em> server resides: it might be listening on another computer, on any TCP port. It should look like "foo:1", which means TCP port number BRLAPI_SOCKETPORTNUM+1 on computer called "foo". </p><dl class="section note"><dt>Note</dt><dd>Please check that resolving this name works before complaining</dd></dl>
<p>Settings <code>NULL</code> defaults it to localhost, using the local installation's default TCP port, or to the content of the BRLAPI_HOST environment variable, if it exists. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="brlapi_8h_source.html">brlapi.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>