1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxSockAddress
}}\label{wxsockaddress
}
6 You are unlikely to need to use this class: only wxSocketBase uses it.
8 \wxheading{Derived from
}
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxSocketBase
}{wxsocketbase
}
19 %\helpref{wxIPV4address}{wxipv4address}\\
20 %\helpref{wxIPV6address}{wxipv6address}\\
21 %\helpref{wxunixaddress}{wxunixaddress}
23 % ----------------------------------------------------------------------------
25 % ----------------------------------------------------------------------------
27 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxSockAddress::wxSockAddress
}
35 \func{}{wxSockAddress
}{\void}
39 \membersection{wxSockAddress::
\destruct{wxSockAddress
}}
41 \func{}{\destruct{wxSockAddress
}}{\void}
48 \membersection{wxSockAddress::Clear
}
49 \func{void
}{Clear
}{\void}
51 Delete all informations about the address.
56 \membersection{wxSockAddress::Build
}
58 \func{void
}{Build
}{\param{struct sockaddr *\&
}{ addr
},
\param{size
\_t\&
}{ len
}}
60 Build a coded socket address.
65 \membersection{wxSockAddress::Disassemble
}
67 \func{void
}{Disassemble
}{\param{struct sockaddr *
}{addr
},
\param{size
\_t}{ len
}}
69 Decode a socket address.
{\bf Actually, you don't have to use this
70 function: only wxSocketBase use it.
}
75 \membersection{wxSockAddress::SockAddrLen
}
77 \func{int
}{SockAddrLen
}{\void};
79 Returns the length of the socket address.
81 % ----------------------------------------------------------------------------
82 % CLASS: wxIPV4address
83 % ----------------------------------------------------------------------------
84 \section{\class{wxIPV4address
}}\label{wxipv4address
}
86 \wxheading{Derived from
}
88 \helpref{wxSockAddress
}{wxsockaddress
}
90 \wxheading{Include files
}
94 % ----------------------------------------------------------------------------
96 % ----------------------------------------------------------------------------
98 \latexignore{\rtfignore{\wxheading{Members
}}}
104 \membersection{wxIPV4address::Hostname
}
106 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
108 Use the specified
{\it hostname
} for the address.
110 \wxheading{Return value
}
112 Returns FALSE if something bad happens (invalid hostname, invalid IP address).
118 \membersection{wxIPV4address::Hostname
}
120 \func{wxString
}{Hostname
}{\void}
122 Returns the hostname which matches the IP address.
128 \membersection{wxIPV4address::Service
}
130 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
132 Use the specified
{\it service
} string for the address.
134 \wxheading{Return value
}
136 Returns FALSE if something bad happens (invalid service).
142 \membersection{wxIPV4address::Service
}
144 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
146 Use the specified
{\it service
} for the address.
148 \wxheading{Return value
}
150 Returns FALSE if something bad happens (invalid service).
156 \membersection{wxIPV4address::Service
}
158 \func{unsigned short
}{Service
}{\void}
160 Returns the current service.
166 \membersection{wxIPV4address::LocalHost
}
168 \func{bool
}{LocalHost
}{\void}
170 Initialize peer host to local host.
172 \wxheading{Return value
}
174 Returns FALSE if something bad happens.