send package:socket

Send data.
Like send, but allows to specify a destination address.
Sends a whole ByteString with as many system calls as necessary and returns the bytes sent (in this case just the ByteStrings length).
Sends a whole Builder without allocating ByteStrings. If performance is an issue, this operation should be preferred over all other solutions for sending stream data. The operation allocates a single buffer of the given size on entry and reuses this buffer until the whole Builder has been sent. The count of all bytes sent is returned as there is no other efficient way to determine a Builders size without actually building it.
Like sendAll, but operates on lazy ByteStrings. It uses sendAll internally to send all chunks sequentially. The lock on the socket is acquired for each chunk separately, so the socket can be read from in an interleaving fashion.
Like send, but using Ptr and length instead of a ByteString. This function is unsafe. bufPtr must refer to a buffer which size is at least bufSize bytes.
Like sendTo, but using Ptr and length instead of a ByteString. This function is unsafe. bufPtr must refer to a buffer which size is at least bufSize bytes.