/external/mtpd/ |
mtpd.h | 21 extern int the_socket;
|
mtpd.c | 40 int the_socket = -1; variable 203 pollfds[1].fd = the_socket; 291 the_socket = socket(r->ai_family, r->ai_socktype, r->ai_protocol); 292 if (the_socket != -1) { 293 if (connect(the_socket, r->ai_addr, r->ai_addrlen) == 0) { 296 close(the_socket); 297 the_socket = -1; 303 if (the_socket == -1) { 308 fcntl(the_socket, F_SETFD, FD_CLOEXEC); 309 log_print(INFO, "Connection established (socket = %d)", the_socket); [all...] |
pptp.c | 146 send(the_socket, outgoing.buffer, outgoing.length, 0); 165 length = recv(the_socket, buffer, length, 0); 170 length = recv(the_socket, &incoming.buffer[incoming.length], length, 0); 247 .tcp_socket = the_socket,
|
l2tp.c | 169 send(the_socket, outgoing.buffer, outgoing.length, 0); 179 send(the_socket, buffer, ACK_SIZE, 0); 186 incoming.length = recv(the_socket, incoming.buffer, MAX_PACKET_LENGTH, 0); 361 .udp_socket = the_socket, 547 send(the_socket, outgoing.buffer, outgoing.length, 0);
|
/frameworks/base/cmds/keystore/ |
keystore.c | 97 static int the_socket = -1; variable 101 return recv(the_socket, code, 1, 0) == 1; 107 if (recv(the_socket, &bytes[0], 1, 0) != 1 || 108 recv(the_socket, &bytes[1], 1, 0) != 1) { 118 int n = recv(the_socket, &message[offset], length - offset, 0); 131 return recv(the_socket, &byte, 1, 0) == 0; 136 send(the_socket, &code, 1, 0); 142 send(the_socket, &bytes, 2, 0); 143 send(the_socket, message, length, 0); 561 while ((the_socket = accept(control_socket, NULL, 0)) != -1) [all...] |