HomeSort by relevance Sort by last modified time
    Searched full:sock (Results 76 - 100 of 1008) sorted by null

1 2 34 5 6 7 8 91011>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_httplib.py 83 conn.sock = FakeSocket('blahblahblah')
107 conn.sock = FakeSocket(None)
115 conn.sock = FakeSocket(None)
123 conn.sock = FakeSocket(None)
134 sock = FakeSocket('')
135 conn.sock = sock
137 self.assertTrue(sock.data.startswith(expected))
142 sock = FakeSocket('')
143 conn.sock = soc
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_httplib.py 83 conn.sock = FakeSocket('blahblahblah')
107 conn.sock = FakeSocket(None)
115 conn.sock = FakeSocket(None)
123 conn.sock = FakeSocket(None)
134 sock = FakeSocket('')
135 conn.sock = sock
137 self.assertTrue(sock.data.startswith(expected))
142 sock = FakeSocket('')
143 conn.sock = soc
    [all...]
  /external/tensorflow/tensorflow/core/platform/windows/
net.cc 38 SOCKET sock = socket(AF_INET, is_tcp ? SOCK_STREAM : SOCK_DGRAM, protocol); local
46 if (sock == INVALID_SOCKET) {
54 int result = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR,
59 closesocket(sock);
67 result = bind(sock, (struct sockaddr*)&addr, sizeof(addr));
71 closesocket(sock);
76 result = getsockname(sock, (struct sockaddr*)&addr, &addr_len);
80 closesocket(sock);
93 closesocket(sock);
  /system/hardware/interfaces/net/netd/testutils/
VtsHalNetNetdTestUtils.cpp 34 int sock = socket(AF_INET6, SOCK_STREAM, 0); local
35 if (sock == -1) {
38 int ret = android_setsocknetwork(netHandle, sock);
42 close(sock);
103 int sock = socket(ai->ai_family, SOCK_DGRAM, 0); local
104 if (sock == -1 || android_setsocknetwork(netHandle, sock) == -1) {
110 ret = connect(sock, ai->ai_addr, ai->ai_addrlen);
111 close(sock);
  /system/netd/server/
NetlinkManager.cpp 67 NetlinkHandler *NetlinkManager::setupSocket(int *sock, int netlinkFamily,
80 if ((*sock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, netlinkFamily)) < 0) {
88 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0 &&
89 setsockopt(*sock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0) {
91 close(*sock);
95 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) {
97 close(*sock);
101 if (bind(*sock, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) {
103 close(*sock);
108 if (android_nflog_send_config_cmd(*sock, 0, NFULNL_CFG_CMD_PF_UNBIND, AF_INET) < 0)
    [all...]
  /external/boringssl/src/crypto/bio/
socket_helper.c 85 int bio_socket_nbio(int sock, int on) {
89 return 0 == ioctlsocket(sock, FIONBIO, &arg);
91 int flags = fcntl(sock, F_GETFL, 0);
100 return fcntl(sock, F_SETFL, flags) == 0;
106 int bio_sock_error(int sock) {
110 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, (char *)&error, &error_size) < 0) {
  /external/boringssl/src/tool/
transport_common.h 54 bool SocketSetNonBlocking(int sock, bool is_non_blocking);
58 bool TransferData(SSL *ssl, int sock);
60 // DoSMTPStartTLS performs the SMTP STARTTLS mini-protocol over |sock|. It
62 bool DoSMTPStartTLS(int sock);
64 // DoHTTPTunnel sends an HTTP CONNECT request over |sock|. It returns true on
66 bool DoHTTPTunnel(int sock, const std::string &hostname_and_port);
  /external/libnl/tests/
test-complex-HTB-with-hash-filters.c 137 int u32_add_filter_on_ht(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t prio,
151 nl_socket_free(sock);
175 if ((err = rtnl_cls_add(sock, cls, NLM_F_CREATE))) {
189 int u32_add_filter_on_ht_with_hashmask(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t prio,
203 nl_socket_free(sock);
229 if ((err = rtnl_cls_add(sock, cls, NLM_F_CREATE))) {
240 int u32_add_ht(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t prio, uint32_t htid, uint32_t divisor)
249 nl_socket_free(sock);
268 if ((err = rtnl_cls_add(sock, cls, NLM_F_CREATE))) {
279 int qdisc_add_HTB(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t defaultClass
496 struct nl_sock *sock; local
    [all...]
test-u32-filter-with-actions.c 102 int u32_add_filter_on_ht_with_hashmask(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t prio,
112 nl_socket_free(sock);
140 if ((err = rtnl_cls_add(sock, cls, NLM_F_CREATE))) {
152 int u32_add_ht(struct nl_sock *sock, struct rtnl_link *rtnlLink, uint32_t prio, uint32_t htid, uint32_t divisor)
161 nl_socket_free(sock);
180 if ((err = rtnl_cls_add(sock, cls, NLM_F_CREATE))) {
192 int qdisc_add_ingress(struct nl_sock *sock, struct rtnl_link *rtnlLink)
209 rtnl_qdisc_delete(sock, qdisc);
220 if ((err = rtnl_qdisc_add(sock, qdisc, NLM_F_CREATE))) {
233 struct nl_sock *sock; local
    [all...]
  /external/ltp/lib/
tst_net.c 32 int sock; local
60 sock = socket(addr->sa_family, type, 0);
61 if (sock < 0) {
66 if (bind(sock, addr, slen) < 0) {
71 if (getsockname(sock, addr, &slen) == -1) {
76 if (close(sock) == -1) {
  /external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/
tirpc_bottomlevel_clnt_call.c 59 int sock; local
81 sock = bound_socket(AF_INET, SOCK_DGRAM);
82 if (sock < 0) {
87 client = clnt_dg_create(sock, &svcaddr,
93 close(sock);
107 close(sock);
  /system/netd/libnetdutils/
Syscalls.cpp 53 UniqueFd sock(::socket(domain, type, protocol));
54 if (!isWellFormed(sock)) {
57 return sock;
60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override {
61 auto rv = ::getsockname(sock.get(), addr, addrlen);
68 Status getsockopt(Fd sock, int level, int optname, void* optval,
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen);
77 Status setsockopt(Fd sock, int level, int optname, const void* optval,
79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen);
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override
    [all...]
  /external/android-clat/
setif.h 24 int add_anycast_address(int sock, const struct in6_addr *addr, const char *interface);
25 int del_anycast_address(int sock, const struct in6_addr *addr);
  /external/libnl/src/lib/
class.c 31 struct nl_cache *nl_cli_class_alloc_cache(struct nl_sock *sock, int ifindex)
36 if ((err = rtnl_class_alloc_cache(sock, ifindex, &cache)) < 0)
link.c 34 struct nl_cache *nl_cli_link_alloc_cache_family(struct nl_sock *sock, int family)
39 if ((err = rtnl_link_alloc_cache(sock, family, &cache)) < 0)
48 struct nl_cache *nl_cli_link_alloc_cache(struct nl_sock *sock)
50 return nl_cli_link_alloc_cache_family(sock, AF_UNSPEC);
  /external/libnl/src/
nl-tctree-list.c 18 static struct nl_sock *sock; variable in typeref:struct:nl_sock
57 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0)
90 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0)
107 if (rtnl_class_alloc_cache(sock, ifindex, &class_cache) < 0)
135 sock = nl_cli_alloc_socket();
136 nl_cli_connect(sock, NETLINK_ROUTE);
137 link_cache = nl_cli_link_alloc_cache(sock);
138 qdisc_cache = nl_cli_qdisc_alloc_cache(sock);
  /external/linux-kselftest/tools/testing/selftests/networking/timestamping/
timestamping.c 137 static void sendpacket(int sock, struct sockaddr *addr, socklen_t addr_len)
142 res = sendto(sock, sync, sizeof(sync), 0,
155 int sock, int recvmsg_flags,
261 if (ioctl(sock, SIOCGSTAMP, &tv))
269 if (ioctl(sock, SIOCGSTAMPNS, &ts))
278 static void recvpacket(int sock, int recvmsg_flags,
301 res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT);
309 sock, recvmsg_flags,
325 int sock; local
367 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)
    [all...]
  /external/wpa_supplicant_8/src/drivers/
driver_wired_common.h 17 int sock; /* raw packet socket for driver access */ member in struct:driver_wired_common_data
25 int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add);
  /tools/test/connectivity/acts/tests/google/wifi/
SetupWifiNetworkTest.py 34 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
35 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
39 sock.bind(('localhost', port))
40 sock.settimeout(timeout)
41 sock.listen(1)
44 connection, client_address = sock.accept()
51 sock.shutdown(socket.SHUT_RDWR)
52 sock.close()
  /device/google/cuttlefish_common/host/frontend/vnc_server/
vnc_server.cpp 42 void VncServer::StartClient(ClientSocket sock) {
43 std::thread t(&VncServer::StartClientThread, this, std::move(sock));
47 void VncServer::StartClientThread(ClientSocket sock) {
53 VncClientConnection client(std::move(sock), &virtual_inputs_, &bb_,
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/
unixserver.py 11 print 'Sock name is: ['+s.getsockname()+']'
  /external/iw/
genl.c 68 int nl_get_multicast_id(struct nl_sock *sock, const char *family, const char *group)
88 ctrlid = genl_ctrl_resolve(sock, "nlctrl");
96 ret = nl_send_auto_complete(sock, msg);
107 nl_recvmsgs(sock, cb);
  /external/python/cpython2/Demo/sockets/
unixserver.py 11 print 'Sock name is: ['+s.getsockname()+']'
  /external/libevent/test/
bench_httpclient.c 114 frob_socket(evutil_socket_t sock)
120 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*)&one, sizeof(one))<0)
125 if (setsockopt(sock, SOL_SOCKET, SO_LINGER, (void*)&l, sizeof(l))<0)
133 evutil_socket_t sock; local
146 if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
148 if (evutil_make_socket_nonblocking(sock) < 0) {
149 evutil_closesocket(sock);
152 frob_socket(sock);
153 if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) < 0) {
154 int e = evutil_socket_geterror(sock);
    [all...]
  /external/linux-kselftest/tools/testing/selftests/bpf/
test_tcp_estats.c 44 /* This test case needs "sock" and "pt_regs" data structure.
45 * Recursively, "sock" needs "sock_common" and "inet_sock".
74 struct sock { struct
82 struct sock sk;
93 static inline struct inet_sock *inet_sk(const struct sock *sk)
160 struct sock *sock; member in struct:dummy_tracepoint_args
212 struct sock *sk)
227 static __always_inline void tcp_estats_init(struct sock *sk,
236 static __always_inline void send_basic_event(struct sock *sk
    [all...]

Completed in 2095 milliseconds

1 2 34 5 6 7 8 91011>>