| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>DB_SITE->get_address()</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> |
| 10 | <link rel="up" href="rep.html" title="Chapter 10. Replication Methods" /> |
| 11 | <link rel="prev" href="dbsite_get_config.html" title="DB_SITE->get_config()" /> |
| 12 | <link rel="next" href="dbsite_get_eid.html" title="DB_SITE->get_eid()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DB_SITE->get_address()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="dbsite_get_config.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 10. |
| 26 | Replication Methods |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="dbsite_get_eid.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="dbsite_get_address"></a>DB_SITE->get_address()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_SITE->get_address(DB_SITE *site, const char **hostp, u_int *portp); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DB_SITE->get_address()</code> method returns a |
| 47 | replication site's network address. That is, this method returns |
| 48 | the site's hostname and port. |
| 49 | </p> |
| 50 | <p> |
| 51 | The <code class="methodname">DB_SITE->get_address()</code> <span> |
| 52 | <span> |
| 53 | method returns a non-zero error value on failure and 0 on success. |
| 54 | </span> |
| 55 | |
| 56 | </span> |
| 57 | </p> |
| 58 | <div class="sect2" lang="en" xml:lang="en"> |
| 59 | <div class="titlepage"> |
| 60 | <div> |
| 61 | <div> |
| 62 | <h3 class="title"><a id="idp53919432"></a>Parameters</h3> |
| 63 | </div> |
| 64 | </div> |
| 65 | </div> |
| 66 | <div class="sect3" lang="en" xml:lang="en"> |
| 67 | <div class="titlepage"> |
| 68 | <div> |
| 69 | <div> |
| 70 | <h4 class="title"><a id="idp53918528"></a>hostp</h4> |
| 71 | </div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <p> |
| 75 | References memory into which is copied a pointer to |
| 76 | the internal storage of the host name. |
| 77 | </p> |
| 78 | </div> |
| 79 | <div class="sect3" lang="en" xml:lang="en"> |
| 80 | <div class="titlepage"> |
| 81 | <div> |
| 82 | <div> |
| 83 | <h4 class="title"><a id="idp53926160"></a>portp</h4> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
| 87 | <p> |
| 88 | References memory into which the port number will be copied. |
| 89 | </p> |
| 90 | </div> |
| 91 | </div> |
| 92 | <div class="sect2" lang="en" xml:lang="en"> |
| 93 | <div class="titlepage"> |
| 94 | <div> |
| 95 | <div> |
| 96 | <h3 class="title"><a id="idp53920288"></a>Class</h3> |
| 97 | </div> |
| 98 | </div> |
| 99 | </div> |
| 100 | <p> |
| 101 | <a class="link" href="db_site.html" title="The DB_SITE Handle">DB_SITE</a> |
| 102 | </p> |
| 103 | </div> |
| 104 | <div class="sect2" lang="en" xml:lang="en"> |
| 105 | <div class="titlepage"> |
| 106 | <div> |
| 107 | <div> |
| 108 | <h3 class="title"><a id="idp53900256"></a>See Also</h3> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | <p> |
| 113 | <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a> |
| 114 | </p> |
| 115 | </div> |
| 116 | </div> |
| 117 | <div class="navfooter"> |
| 118 | <hr /> |
| 119 | <table width="100%" summary="Navigation footer"> |
| 120 | <tr> |
| 121 | <td width="40%" align="left"><a accesskey="p" href="dbsite_get_config.html">Prev</a> </td> |
| 122 | <td width="20%" align="center"> |
| 123 | <a accesskey="u" href="rep.html">Up</a> |
| 124 | </td> |
| 125 | <td width="40%" align="right"> <a accesskey="n" href="dbsite_get_eid.html">Next</a></td> |
| 126 | </tr> |
| 127 | <tr> |
| 128 | <td width="40%" align="left" valign="top">DB_SITE->get_config() </td> |
| 129 | <td width="20%" align="center"> |
| 130 | <a accesskey="h" href="index.html">Home</a> |
| 131 | </td> |
| 132 | <td width="40%" align="right" valign="top"> DB_SITE->get_eid()</td> |
| 133 | </tr> |
| 134 | </table> |
| 135 | </div> |
| 136 | </body> |
| 137 | </html> |