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
}
31 \func{}{wxSockAddress
}{\void}
35 \membersection{wxSockAddress::
\destruct{wxSockAddress
}}
37 \func{}{\destruct{wxSockAddress
}}{\void}
44 \membersection{wxSockAddress::Clear
}
45 \func{void
}{Clear
}{\void}
47 Delete all informations about the address.
52 \membersection{wxSockAddress::Build
}
54 \func{void
}{Build
}{\param{struct sockaddr *\&
}{ addr
},
\param{size
\_t\&
}{ len
}}
56 Build a coded socket address.
61 \membersection{wxSockAddress::Disassemble
}
63 \func{void
}{Disassemble
}{\param{struct sockaddr *
}{addr
},
\param{size
\_t}{ len
}}
65 Decode a socket address.
{\bf Actually, you don't have to use this
66 function: only wxSocketBase use it.
}
71 \membersection{wxSockAddress::SockAddrLen
}
73 \func{int
}{SockAddrLen
}{\void};
75 Returns the length of the socket address.
77 % ----------------------------------------------------------------------------
78 % CLASS: wxIPV4address
79 % ----------------------------------------------------------------------------
80 \section{\class{wxIPV4address
}}\label{wxipv4address
}
82 \wxheading{Derived from
}
84 \helpref{wxSockAddress
}{wxsockaddress
}
86 % ----------------------------------------------------------------------------
88 % ----------------------------------------------------------------------------
90 \latexignore{\rtfignore{\wxheading{Members
}}}
96 \membersection{wxIPV4address::Hostname
}
98 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
100 Use the specified
{\it hostname
} for the address.
102 \wxheading{Return value
}
104 Returns FALSE if something bad happens (invalid hostname, invalid IP address).
110 \membersection{wxIPV4address::Hostname
}
112 \func{wxString
}{Hostname
}{\void}
114 Returns the hostname which matches the IP address.
120 \membersection{wxIPV4address::Service
}
122 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
124 Use the specified
{\it service
} string for the address.
126 \wxheading{Return value
}
128 Returns FALSE if something bad happens (invalid service).
134 \membersection{wxIPV4address::Service
}
136 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
138 Use the specified
{\it service
} for the address.
140 \wxheading{Return value
}
142 Returns FALSE if something bad happens (invalid service).
148 \membersection{wxIPV4address::Service
}
150 \func{unsigned short
}{Service
}{\void}
152 Returns the current service.
158 \membersection{wxIPV4address::LocalHost
}
160 \func{bool
}{LocalHost
}{\void}
162 Initialize peer host to local host.
164 \wxheading{Return value
}
166 Returns FALSE if something bad happens.