Attempts to write buffer.length bytes from buffer to this.
If some data is successfully written, the return status will be soup_socket_ok, and *nwrote
will contain the number of bytes actually written (which may be less than buffer.length).
If this is non-blocking, and no data could be written right away, the return value will be soup_socket_would_block. In this case, the caller can connect to the writable signal to know when more data can be written. (NB: writable is only emitted after write returns soup_socket_would_block, and it is only emitted once. See the documentation for non_blocking.)
| this |
the socket |
| buffer |
data to write |
| nwrote |
on return, number of bytes written |
| cancellable |
a Cancellable, or null |
| len |
size of |
|
a SocketIOStatus, as described above (or soup_socket_eof or soup_socket_error. throws will be set if the return value is soup_socket_error.) |