Searched refs:sock (Results 1 – 15 of 15) sorted by relevance
53 LlcpSocket sock = null; in connect() local55 sock = service.createLlcpSocket(0, MIU, 1, 1024); in connect()65 sock.connectToService(HandoverServer.HANDOVER_SERVICE_NAME); in connect()67 if (sock != null) { in connect()69 sock.close(); in connect()80 mSocket = sock; in connect()101 LlcpSocket sock = null; in sendHandoverRequest()106 sock = mSocket; in sendHandoverRequest()113 int remoteMiu = sock.getRemoteMiu(); in sendHandoverRequest()119 sock.send(tmpBuffer); in sendHandoverRequest()[all …]
55 LlcpSocket sock = null; in connect() local58 sock = service.createLlcpSocket(0, MIU, 1, 1024); in connect()67 sock.connectToService(NdefPushServer.SERVICE_NAME); in connect()69 if (sock != null) { in connect()71 sock.close(); in connect()83 mSocket = sock; in connect()89 LlcpSocket sock = null; in push() local95 sock = mSocket; in push()104 remoteMiu = sock.getRemoteMiu(); in push()110 sock.send(tmpBuffer); in push()[all …]
66 ConnectionThread(LlcpSocket sock) { in ConnectionThread() argument68 mSock = sock; in ConnectionThread()
159 static int connect_with_timeout(int sock, const struct sockaddr* nsap, socklen_t salen,161 static int retrying_poll(const int sock, short events, const struct timespec* finish);869 static int connect_with_timeout(int sock, const sockaddr* nsap, socklen_t salen, in connect_with_timeout() argument873 origflags = fcntl(sock, F_GETFL, 0); in connect_with_timeout()874 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); in connect_with_timeout()876 res = connect(sock, nsap, salen); in connect_with_timeout()884 LOG(INFO) << __func__ << ": " << sock << " send_vc"; in connect_with_timeout()885 res = retrying_poll(sock, POLLIN | POLLOUT, &finish); in connect_with_timeout()891 fcntl(sock, F_SETFL, origflags); in connect_with_timeout()892 LOG(INFO) << __func__ << ": " << sock << " connect_with_const timeout returning " << res; in connect_with_timeout()[all …]
93 for (auto& sock : nssocks) { in closeSockets()94 sock.reset(); in closeSockets()171 inline void resolv_tag_socket(int sock, uid_t uid, pid_t pid) { in resolv_tag_socket() argument174 if (int err = android::net::gResNetdCallbacks.tagSocket(sock, TAG_SYSTEM_DNS, uid, pid)) { in resolv_tag_socket()181 if (fchown(sock, uid, -1) == -1) { in resolv_tag_socket()
103 for (auto& sock : statp->nssocks) { in res_init() local104 sock.reset(); in res_init()123 for (auto& sock : resOutput.nssocks) { in fromResState() local124 sock.reset(); in fromResState()
1294 int sock; in _find_src_addr() local1310 sock = socket(addr->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP); in _find_src_addr()1311 if (sock == -1) { in _find_src_addr()1318 if (mark != MARK_UNSET && setsockopt(sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) < 0) { in _find_src_addr()1319 close(sock); in _find_src_addr()1322 if (uid > 0 && uid != NET_CONTEXT_INVALID_UID && fchown(sock, uid, (gid_t) -1) < 0) { in _find_src_addr()1323 close(sock); in _find_src_addr()1327 ret = connect(sock, addr, len); in _find_src_addr()1331 close(sock); in _find_src_addr()1335 if (src_addr && getsockname(sock, src_addr, &len) == -1) { in _find_src_addr()[all …]
80 FileDescriptor sock = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in getInstance() local81 Os.bind(sock, INADDR_ANY, 0); in getInstance()84 Os.fcntlInt(sock, F_SETFL, SOCK_DGRAM | SOCK_NONBLOCK); in getInstance()85 network.bindSocket(sock); in getInstance()87 ikeSocket = new IkeUdp6Socket(sock, network, handler); in getInstance()
80 FileDescriptor sock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in getInstance() local81 Os.bind(sock, INADDR_ANY, 0); in getInstance()84 Os.fcntlInt(sock, F_SETFL, SOCK_DGRAM | SOCK_NONBLOCK); in getInstance()85 network.bindSocket(sock); in getInstance()87 ikeSocket = new IkeUdp4Socket(sock, network, handler); in getInstance()
1051 FileDescriptor sock = in enterState() local1056 network.bindSocket(sock); in enterState()1057 Os.connect(sock, mRemoteAddress, mIkeSocket.getIkeServerPort()); in enterState()1058 InetSocketAddress localAddr = (InetSocketAddress) Os.getsockname(sock); in enterState()1061 Os.close(sock); in enterState()
121 self.sock.sendall(msgHdr)123 self.sock.sendall(msgStr)146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)147 self.sock.connect(('localhost', localPortNumber))156 b = self.sock.recv(4)161 b = self.sock.recv(msgLen)
103 FileDescriptor sock = in getBoundUdpSocket() local105 Os.bind(sock, address, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in getBoundUdpSocket()106 return sock; in getBoundUdpSocket()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...