Lines Matching refs:mSocket
32 Socket::Socket() : mState(State::New), mSocket(-1) { in Socket()
35 Socket::Socket(Socket&& other) noexcept : mState(other.mState), mSocket(other.mSocket) { in Socket()
36 other.mSocket = -1; in Socket()
41 if (mSocket != -1) { in ~Socket()
42 close(mSocket); in ~Socket()
43 mSocket = -1; in ~Socket()
49 if (mSocket != -1) { in operator =()
50 close(mSocket); in operator =()
52 mSocket = other.mSocket; in operator =()
54 other.mSocket = -1; in operator =()
64 mSocket = ::socket(domain, type | SOCK_CLOEXEC, protocol); in open()
65 if (mSocket == -1) { in open()
76 int res = ::setsockopt(mSocket, SOL_SOCKET, SO_BINDTODEVICE, in setInterface()
86 int res = ::setsockopt(mSocket, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, in setMulticastHopLimit()
96 int res = ::setsockopt(mSocket, IPPROTO_IPV6, IPV6_UNICAST_HOPS, in setUnicastHopLimit()
107 int res = ::setsockopt(mSocket, IPPROTO_IPV6, IPV6_TRANSPARENT, in setTransparent()
118 int res = ::bind(mSocket, address.get<sockaddr>(), address.size()); in bind()
135 ssize_t rxBytes = ::recv(mSocket, in receive()
161 ssize_t rxBytes = ::recvfrom(mSocket, in receiveFrom()
180 int res = ::send(mSocket, data, size, 0); in send()
195 int res = ::sendto(mSocket, data, size, 0, &destination, destinationSize); in sendTo()
249 int res = ::sendmsg(mSocket, &messageHeader, 0); in sendFrom()