a #GSocketAddress, or %NULL
an array of #GOutputVector structs
a pointer to an array of #GSocketControlMessages, or %NULL.
an int containing #GSocketMsgFlags flags, which may additionally contain other platform specific flags
the maximum time (in microseconds) to wait, or -1
location to store the number of bytes that were written to the socket
a %GCancellable or %NULL
%G_POLLABLE_RETURN_OK if all data was successfully written, %G_POLLABLE_RETURN_WOULD_BLOCK if the socket is currently not writable, or %G_POLLABLE_RETURN_FAILED if an error happened and @error is set.
GException on failure.
2.60
This behaves exactly the same as g_socket_send_message(), except that the choice of timeout behavior is determined by the @timeout_us argument rather than by @socket's properties.
On error %G_POLLABLE_RETURN_FAILED is returned and @error is set accordingly, or if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is returned. @bytes_written will contain 0 in both cases.