Beispiel #1
0
int Cbvalue::write(str_ref s)
{
	return write(s.data(), s.size());
}
Beispiel #2
0
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);
}
Beispiel #3
0
static bool operator==(str_ref a, const char* b)
{
	return a.size() == strlen(b) && !memcmp(a.data(), b, a.size());
}
Beispiel #4
0
int Csocket::send(str_ref s) const
{
	return ::send(*this, s.data(), s.size(), MSG_NOSIGNAL);
}