on error
Socket.sendTo
ptrdiff_t sendTo(gio.socket_address.SocketAddress address, ubyte[] buffer, gio.cancellable.Cancellable cancellable = null)Tries to send size bytes from buffer to address. If address is null then the message is sent to the default receiver (set by gio.socket.Socket.connect).
See gio.socket.Socket.send for additional information.
Parameters
address | a #GSocketAddress, or null |
buffer | the buffer containing the data to send. |
cancellable | a gio.cancellable.Cancellable or null |
Returns
Number of bytes written (which may be less than size), or -1