on error
Socket.sendWithBlocking
ptrdiff_t sendWithBlocking(ubyte[] buffer, bool blocking, gio.cancellable.Cancellable cancellable = null)This behaves exactly the same as [gio.socket.Socket.send], except that the choice of blocking or non-blocking behavior is determined by the blocking argument rather than by socket's properties.
Parameters
buffer | the buffer containing the data to send. |
blocking | whether to do blocking or non-blocking I/O |
cancellable | a [gio.cancellable.Cancellable] or null |
Returns
Number of bytes written (which may be less than size), or -1
Throws
[ErrorWrap]