[#Sock-SendComplete-0bd3] = xref:Sock.adoc[Sock]::SendComplete :relfileprefix: ../ :mrdocs: `SendComplete` overloads == Synopses Declared in `<util/sock.h>` Convenience method, equivalent to `SendComplete(MakeUCharSpan(data), timeout, interrupt)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void xref:Sock/SendComplete-03.adoc[SendComplete]( std::span<char const> data, std::chrono::milliseconds timeout, xref:CThreadInterrupt.adoc[CThreadInterrupt]& interrupt) const; ---- [.small]#xref:Sock/SendComplete-03.adoc[_» more..._]# Send the given data, retrying on transient errors. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void xref:Sock/SendComplete-0bd5.adoc[SendComplete]( std::span<unsigned char const> data, std::chrono::milliseconds timeout, xref:CThreadInterrupt.adoc[CThreadInterrupt]& interrupt) const; ---- [.small]#xref:Sock/SendComplete-0bd5.adoc[_» more..._]# == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if the operation cannot be completed. In this case only some of the data will be written to the socket. |=== == Parameters [cols="1,4"] |=== | Name| Description | *data* [in] | Data to send. | *timeout* [in] | Timeout for the entire operation. | *interrupt* [in] | If this is signaled then the operation is canceled. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#