I want to write data from an std::vector to a socket, using the write function, which has this prototype:
std::vector
write
ssize_t write
C++11 has vec.data() which has the benefit that the call is valid even if the vector is empty.
vec.data()