1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>glibmm 2.4: Gio::InetSocketAddress Class Reference</title>
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>glibmm: Gio::InetSocketAddress Class Reference</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
4
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<body bgcolor="#ffffff">
7
<table border="0" width="100%">
9
<td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
10
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
14
<a class="qindex" href="http://www.gtkmm.org/documentation.shtml">Main Page</a>
15
<a class="qindex" href="namespaces.html">glibmm Namespaces</a>
16
<a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a>
20
<!-- begin main content -->
22
<!-- Generated by Doxygen 1.5.9 -->
7
<!-- Generated by Doxygen 1.5.8 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
12
<li><a href="pages.html"><span>Related Pages</span></a></li>
13
<li><a href="modules.html"><span>Modules</span></a></li>
14
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
15
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
16
<li><a href="examples.html"><span>Examples</span></a></li>
21
<li><a href="annotated.html"><span>Class List</span></a></li>
22
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
23
<li><a href="functions.html"><span>Class Members</span></a></li>
23
26
<div class="navpath"><a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1InetSocketAddress.html">InetSocketAddress</a>
25
29
<div class="contents">
26
<h1>Gio::InetSocketAddress Class Reference</h1><!-- doxytag: class="Gio::InetSocketAddress" --><!-- doxytag: inherits="Gio::SocketAddress" -->Internet <a class="el" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication.">SocketAddress</a>.
27
<a href="#_details">More...</a>
30
<h1>Gio::InetSocketAddress Class Reference</h1><!-- doxytag: class="Gio::InetSocketAddress" --><!-- doxytag: inherits="Gio::SocketAddress" -->Internet <a class="el" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication.">SocketAddress</a>. <a href="#_details">More...</a>
32
Inherits <a class="el" href="classGio_1_1SocketAddress.html">Gio::SocketAddress</a>.
29
34
<div class="dynheader">
30
Inheritance diagram for Gio::InetSocketAddress:</div>
35
Collaboration diagram for Gio::InetSocketAddress:</div>
31
36
<div class="dynsection">
32
<p><center><img src="classGio_1_1InetSocketAddress__inherit__graph.png" border="0" usemap="#Gio_1_1InetSocketAddress__inherit__map" alt="Inheritance graph"></center>
33
<map name="Gio_1_1InetSocketAddress__inherit__map">
34
<area shape="rect" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication." alt="" coords="56,315,195,344"><area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,237,96,267"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="49,83,169,112"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="133,160,237,189"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="56,5,163,35"><area shape="rect" href="classGio_1_1SocketConnectable.html" title="Interface for potential socket endpoints." alt="" coords="120,237,283,267"></map>
37
<p><center><img src="classGio_1_1InetSocketAddress__coll__graph.png" border="0" usemap="#Gio_1_1InetSocketAddress__coll__map" alt="Collaboration graph"></center>
38
<map name="Gio_1_1InetSocketAddress__coll__map">
39
<area shape="rect" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication." alt="" coords="56,304,195,331"><area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,229,96,256"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="49,80,169,107"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="133,155,237,181"><area shape="rect" href="classGio_1_1SocketConnectable.html" title="Interface for potential socket endpoints." alt="" coords="120,229,283,256"></map>
35
40
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38
43
<a href="classGio_1_1InetSocketAddress-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
40
45
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#86c013c0d7971681b61da945543f1071">~InetSocketAddress</a> ()</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#2185ff490fa658c11854df16c41910dc">gobj</a> ()</td></tr>
45
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#2185ff490fa658c11854df16c41910dc"></a><br></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#d0a057e46b10504010e3e014d3207f4d">gobj</a> () const </td></tr>
48
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#d0a057e46b10504010e3e014d3207f4d"></a><br></td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#0d165726f19e26d3c03a184510b6df2b">gobj_copy</a> ()</td></tr>
51
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#0d165726f19e26d3c03a184510b6df2b"></a><br></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#28a044f52e94263559a50197d4ddfd6b">get_address</a> ()</td></tr>
54
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>. <a href="#28a044f52e94263559a50197d4ddfd6b"></a><br></td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#0ff00835b7a56e1df1c18aaa3d842bea">get_address</a> () const </td></tr>
57
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>. <a href="#0ff00835b7a56e1df1c18aaa3d842bea"></a><br></td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">guint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#e9fc68c477f6ed7915befb4131f42f42">get_port</a> () const </td></tr>
60
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> port. <a href="#e9fc68c477f6ed7915befb4131f42f42"></a><br></td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
62
<<a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#11ed0ddfae5e91401ff0e2a64c0e4486">property_address</a> () const </td></tr>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">The address. <a href="#11ed0ddfae5e91401ff0e2a64c0e4486"></a><br></td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
66
<guint16> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#846bfac32dc21d47e98fe2576fa5c484">property_port</a> () const </td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">The port. <a href="#846bfac32dc21d47e98fe2576fa5c484"></a><br></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#86c013c0d7971681b61da945543f1071">~InetSocketAddress</a> ()</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#2185ff490fa658c11854df16c41910dc">gobj</a> ()</td></tr>
50
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#2185ff490fa658c11854df16c41910dc"></a><br></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#d0a057e46b10504010e3e014d3207f4d">gobj</a> () const </td></tr>
53
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#d0a057e46b10504010e3e014d3207f4d"></a><br></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">GInetSocketAddress* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#0d165726f19e26d3c03a184510b6df2b">gobj_copy</a> ()</td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#0d165726f19e26d3c03a184510b6df2b"></a><br></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#28a044f52e94263559a50197d4ddfd6b">get_address</a> ()</td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>. <a href="#28a044f52e94263559a50197d4ddfd6b"></a><br></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#0ff00835b7a56e1df1c18aaa3d842bea">get_address</a> () const </td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>. <a href="#0ff00835b7a56e1df1c18aaa3d842bea"></a><br></td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">guint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#e9fc68c477f6ed7915befb4131f42f42">get_port</a> () const </td></tr>
65
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets <em>address's</em> port. <a href="#e9fc68c477f6ed7915befb4131f42f42"></a><br></td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
67
< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#11ed0ddfae5e91401ff0e2a64c0e4486">property_address</a> () const </td></tr>
69
<tr><td class="mdescLeft"> </td><td class="mdescRight">The address. <a href="#11ed0ddfae5e91401ff0e2a64c0e4486"></a><br></td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
71
< guint16 > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#846bfac32dc21d47e98fe2576fa5c484">property_port</a> () const </td></tr>
73
<tr><td class="mdescLeft"> </td><td class="mdescRight">The port. <a href="#846bfac32dc21d47e98fe2576fa5c484"></a><br></td></tr>
69
74
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
70
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
71
<<a class="el" href="classGio_1_1InetSocketAddress.html">InetSocketAddress</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#863fb8d260958e69d603e2903595a973">create</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>>& address, guint16 port)</td></tr>
76
< <a class="el" href="classGio_1_1InetSocketAddress.html">InetSocketAddress</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#863fb8d260958e69d603e2903595a973">create</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address, guint16 port)</td></tr>
73
78
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#54cf3e5885e7c14a26017ccdc5f552e8">InetSocketAddress</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>>& address, guint16 port)</td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#54cf3e5885e7c14a26017ccdc5f552e8">InetSocketAddress</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address, guint16 port)</td></tr>
76
81
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
77
82
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
78
83
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
79
<<a class="el" href="classGio_1_1InetSocketAddress.html">Gio::InetSocketAddress</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#4498f65e8445567d4cacdc0a68437c33">wrap</a> (GInetSocketAddress* object, bool take_copy=false)</td></tr>
84
< <a class="el" href="classGio_1_1InetSocketAddress.html">Gio::InetSocketAddress</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1InetSocketAddress.html#4498f65e8445567d4cacdc0a68437c33">wrap</a> (GInetSocketAddress* object, bool take_copy=false)</td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#4498f65e8445567d4cacdc0a68437c33"></a><br></td></tr>
86
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#4498f65e8445567d4cacdc0a68437c33"></a><br></td></tr>
83
88
<hr><a name="_details"></a><h2>Detailed Description</h2>
84
Internet <a class="el" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication.">SocketAddress</a>.
89
Internet <a class="el" href="classGio_1_1SocketAddress.html" title="Abstract base class representing endpoints for socket communication.">SocketAddress</a>. <p>
86
90
An IPv4 or IPv6 socket address; that is, the combination of a GInetAddress and a port number.<p>
87
91
An IPv4 or IPv6 socket address, corresponding to a struct sockaddr_in or struct sockaddr_in6.<p>
88
<dl class="newin2p22s" compact><dt><b><a class="el" href="newin2p22s.html#_newin2p22s000038">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
92
<dl compact><dt><b><a class="el" href="since_2_22.html#_since_2_22000038">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
89
93
<hr><h2>Constructor & Destructor Documentation</h2>
90
94
<a class="anchor" name="86c013c0d7971681b61da945543f1071"></a><!-- doxytag: member="Gio::InetSocketAddress::~InetSocketAddress" ref="86c013c0d7971681b61da945543f1071" args="()" -->
91
95
<div class="memitem">
92
96
<div class="memproto">
93
97
<table class="memname">
95
<td class="memname">virtual Gio::InetSocketAddress::~InetSocketAddress </td>
99
<td class="memname">virtual Gio::InetSocketAddress::~InetSocketAddress </td>
97
<td class="paramname"> </td>
98
<td> ) </td>
101
<td class="paramname"> </td>
102
<td> ) </td>
99
103
<td><code> [virtual]</code></td>