1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxSockAddress
}}\label{wxsockaddress
}
6 \wxheading{Derived from
}
8 \helpref{wxObject
}{wxobject
}
10 {\bf Actually, you don't have to use these functions: only wxSocketBase use it.
}
14 \helpref{wxSocketBase
}{wxsocketbase
}\\
15 \helpref{wxIPV4address
}{wxipv4address
}\\
16 \helpref{wxIPV6address
}{wxipv6address
}\\
17 \helpref{wxunixaddress
}{wxunixaddress
}
19 % ----------------------------------------------------------------------------
21 % ----------------------------------------------------------------------------
23 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxSockAddress::wxSockAddress
}
30 \func{}{wxSockAddress
}{\void}
34 \membersection{wxSockAddress::
\destruct{wxSockAddress
}}
35 \func{}{\destruct{wxSockAddress
}}{\void}
42 \membersection{wxSockAddress::Clear
}
43 \func{void
}{Clear
}{\void}
45 Delete all informations about the address.
50 \membersection{wxSockAddress::Build
}
51 \func{void
}{Build
}{\param{struct sockaddr *\&
}{ addr
},
\param{size
\_t\&
}{ len
}}
53 Build a coded socket address.
58 \membersection{wxSockAddress::Disassemble
}
59 \func{void
}{Disassemble
}{\param{struct sockaddr *
}{addr
},
\param{size
\_t}{ len
}}
61 Decode a socket address.
{\bf Actually, you don't have to use this
62 function: only wxSocketBase use it.
}
67 \membersection{wxSockAddress::SockAddrLen
}
68 \func{int
}{SockAddrLen
}{\void};
70 Returns the length of the socket address.
72 % ----------------------------------------------------------------------------
73 % CLASS: wxIPV4address
74 % ----------------------------------------------------------------------------
75 \section{\class{wxIPV4address
}}\label{wxipv4address
}
77 \wxheading{Derived from
}
79 \helpref{wxSockAddress
}{wxsockaddress
}
81 % ----------------------------------------------------------------------------
83 % ----------------------------------------------------------------------------
85 \latexignore{\rtfignore{\wxheading{Members
}}}
91 \membersection{wxIPV4address::Hostname
}
92 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
94 Use the specified
{\it hostname
} for the address.
96 \wxheading{Return value
}
98 Returns FALSE if something bad happens (invalid hostname, invalid IP address).
104 \membersection{wxIPV4address::Hostname
}
105 \func{wxString
}{Hostname
}{\void}
107 Returns the hostname which matches the IP address.
113 \membersection{wxIPV4address::Service
}
114 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
116 Use the specified
{\it service
} string for the address.
118 \wxheading{Return value
}
120 Returns FALSE if something bad happens (invalid service).
126 \membersection{wxIPV4address::Service
}
127 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
129 Use the specified
{\it service
} for the address.
131 \wxheading{Return value
}
133 Returns FALSE if something bad happens (invalid service).
139 \membersection{wxIPV4address::Service
}
140 \func{unsigned short
}{Service
}{\void}
142 Returns the current service.
148 \membersection{wxIPV4address::LocalHost
}
149 \func{bool
}{LocalHost
}{\void}
151 Initialize peer host to local host.
153 \wxheading{Return value
}
155 Returns FALSE if something bad happens.