OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mSock
(Results
1 - 9
of
9
) sorted by null
/system/vold/
NetlinkManager.cpp
61
if ((
mSock
= socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC,
67
if (setsockopt(
mSock
, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
72
if (setsockopt(
mSock
, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) {
77
if (bind(
mSock
, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) {
82
mHandler = new NetlinkHandler(
mSock
);
91
close(
mSock
);
105
close(
mSock
);
106
mSock
= -1;
NetlinkManager.h
32
int
mSock
;
/system/netd/server/
SockDiag.h
46
SockDiag() :
mSock
(-1), mWriteSock(-1), mSocketsDestroyed(0) {}
64
int
mSock
;
70
bool hasSocks() { return
mSock
!= -1 && mWriteSock != -1; }
71
void closeSocks() { close(
mSock
); close(mWriteSock);
mSock
= mWriteSock = -1; }
SockDiag.cpp
71
mSock
= socket(PF_NETLINK, SOCK_DGRAM, NETLINK_INET_DIAG);
79
if ((connect(
mSock
, reinterpret_cast<sockaddr *>(&nl), sizeof(nl)) == -1) ||
113
if (writev(
mSock
, iov, iovcnt) != (ssize_t) len) {
117
return checkError(
mSock
);
203
bytesread = read(
mSock
, buf, sizeof(buf));
/system/core/libsysutils/src/
SocketListener.cpp
50
mSock
= socketFd;
57
if (mSocketName &&
mSock
> -1)
58
close(
mSock
);
78
if (!mSocketName &&
mSock
== -1) {
83
if ((
mSock
= android_get_control_socket(mSocketName)) < 0) {
88
SLOGV("got
mSock
= %d for %s",
mSock
, mSocketName);
89
fcntl(
mSock
, F_SETFD, FD_CLOEXEC);
92
if (mListen && listen(
mSock
, backlog) < 0) {
96
mClients->push_back(new SocketClient(
mSock
, false, mUseCmdNum))
[
all
...]
/packages/apps/Nfc/src/com/android/nfc/handover/
HandoverServer.java
169
private final LlcpSocket
mSock
;
173
mSock
= socket;
187
byte[] partial = new byte[
mSock
.getLocalMiu()];
191
int size =
mSock
.receive(partial);
222
int remoteMiu =
mSock
.getRemoteMiu();
226
mSock
.send(tmpBuffer);
249
mSock
.close();
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
NdefPushServer.java
64
private LlcpSocket
mSock
;
68
mSock
= sock;
83
size =
mSock
.receive(partial);
109
mSock
.close();
/system/core/include/sysutils/
SocketListener.h
27
int
mSock
;
/packages/apps/Nfc/src/com/android/nfc/snep/
SnepServer.java
98
private final LlcpSocket
mSock
;
103
mSock
= socket;
130
mSock
.close();
Completed in 86 milliseconds