int Cbvalue::write(str_ref s) { return write(s.data(), s.size()); }
int Csocket::sendto(str_ref s, const sockaddr* a, socklen_t cb_a) const { return ::sendto(*this, s.data(), s.size(), MSG_NOSIGNAL, a, cb_a); }
static bool operator==(str_ref a, const char* b) { return a.size() == strlen(b) && !memcmp(a.data(), b, a.size()); }
int Csocket::send(str_ref s) const { return ::send(*this, s.data(), s.size(), MSG_NOSIGNAL); }