1
\alias{gSocketAddressToNative}
2
\name{gSocketAddressToNative}
3
\title{gSocketAddressToNative}
4
\description{Converts a \code{\link{GSocketAddress}} to a native \verb{struct
5
sockaddr}, which can be passed to low-level functions like
6
\code{connect()} or \code{bind()}.}
7
\usage{gSocketAddressToNative(object, dest, destlen, .errwarn = TRUE)}
9
\item{\verb{object}}{a \code{\link{GSocketAddress}}}
10
\item{\verb{dest}}{a pointer to a memory location that will contain the native
11
\verb{structsockaddr}.}
12
\item{\verb{destlen}}{the size of \code{dest}. Must be at least as large as
13
\code{\link{gSocketAddressGetNativeSize}}.}
14
\item{.errwarn}{Whether to issue a warning on error or fail silently}
16
\details{If not enough space is availible, a \code{G_IO_ERROR_NO_SPACE} error is
17
returned. If the address type is not known on the system
18
then a \code{G_IO_ERROR_NOT_SUPPORTED} error is returned.
21
A list containing the following elements:
22
\item{retval}{[logical] \code{TRUE} if \code{dest} was filled in, \code{FALSE} on error}
23
\item{\verb{error}}{\code{\link{GError}} for error reporting, or \code{NULL} to ignore.}
25
\author{Derived by RGtkGen from GTK+ documentation}