/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
SockImpl.c | 40 @param Sock Pointer to the socket.
45 IN OUT SOCKET *Sock
150 @param Sock Pointer to the socket.
158 IN SOCKET *Sock,
185 Sock->RcvBuffer.DataQueue,
201 @param Sock Pointer to the socket.
209 IN SOCKET *Sock,
217 ASSERT (Sock != NULL);
219 ASSERT (SockStream == Sock->Type);
224 &Sock->RcvBuffer, [all...] |
SockInterface.c | 58 @param Sock Pointer to the instance's socket.
67 IN SOCKET *Sock,
72 if (SockTokenExistedInList (&Sock->SndTokenList, Event) ||
73 SockTokenExistedInList (&Sock->ProcessingSndTokenList, Event) ||
74 SockTokenExistedInList (&Sock->RcvTokenList, Event) ||
75 SockTokenExistedInList (&Sock->ListenTokenList, Event)) {
80 if ((Sock->ConnectionToken != NULL) &&
81 (Sock->ConnectionToken->Event == Event)) {
86 if ((Sock->CloseToken != NULL) && (Sock->CloseToken->Event == Event)) { [all...] |
Socket.h | 89 @param Sock Pointer to the socket
92 #define SOCK_NO_MORE_DATA(Sock) ((Sock)->Flag |= SO_NO_MORE_DATA)
97 @param Sock Pointer to the socket
103 #define SOCK_IS_UNCONFIGURED(Sock) ((Sock)->ConfigureState == SO_UNCONFIGURED)
108 @param Sock Pointer to the socket
114 #define SOCK_IS_CONFIGURED(Sock) \
115 (((Sock)->ConfigureState == SO_CONFIGURED_ACTIVE) || \
116 ((Sock)->ConfigureState == SO_CONFIGURED_PASSIVE)) [all...] |
/system/bt/btif/src/ |
btif_sock_l2cap.cc | 89 static void btsock_l2cap_server_listen(l2cap_socket* sock); 115 static char packet_get_head_l(l2cap_socket* sock, uint8_t** data, 117 struct packet* p = sock->first_packet; 121 if (data) *data = sock->first_packet->data; 122 if (len) *len = sock->first_packet->len; 123 sock->first_packet = p->next; 124 if (sock->first_packet) 125 sock->first_packet->prev = NULL; 127 sock->last_packet = NULL; 129 if (len) sock->bytes_buffered -= *len 202 l2cap_socket* sock = socks; local 275 l2cap_socket* sock = (l2cap_socket*)osi_calloc(sizeof(*sock)); local 382 l2cap_socket* sock; local 411 l2cap_socket* sock; local 554 l2cap_socket* sock; local 581 l2cap_socket* sock; local 599 l2cap_socket* sock; local 616 l2cap_socket* sock = btsock_l2cap_find_by_id_l(id); local 631 l2cap_socket* sock; local 762 l2cap_socket* sock = btsock_l2cap_find_by_id_l(id); local 831 l2cap_socket* sock = btsock_l2cap_alloc_l(name, addr, listen, flags); local 941 l2cap_socket* sock = btsock_l2cap_find_by_id_l(user_id); local [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
SockImpl.c | 185 @param[in] Sock Pointer to the socket.
193 IN SOCKET *Sock,
223 Sock->RcvBuffer.DataQueue,
238 @param[in, out] Sock Pointer to the socket.
243 IN OUT SOCKET *Sock
253 ASSERT ((Sock != NULL) && (SockStream == Sock->Type));
255 FreeSpace = SockGetFreeSpace (Sock, SOCK_SND_BUF);
261 while ((FreeSpace >= Sock->SndBuffer.LowWater) && !IsListEmpty (&Sock->SndTokenList)) { [all...] |
SockInterface.c | 56 @param[in] Sock Pointer to the instance's socket.
65 IN SOCKET *Sock,
70 if (SockTokenExistedInList (&Sock->SndTokenList, Event) ||
71 SockTokenExistedInList (&Sock->ProcessingSndTokenList, Event) ||
72 SockTokenExistedInList (&Sock->RcvTokenList, Event) ||
73 SockTokenExistedInList (&Sock->ListenTokenList, Event)
79 if ((Sock->ConnectionToken != NULL) && (Sock->ConnectionToken->Event == Event)) {
84 if ((Sock->CloseToken != NULL) && (Sock->CloseToken->Event == Event)) { [all...] |
Socket.h | 106 @param[in] Sock Pointer to the socket
109 #define SOCK_NO_MORE_DATA(Sock) ((Sock)->Flag |= SO_NO_MORE_DATA)
114 @param[in] Sock Pointer to the socket.
120 #define SOCK_IS_UNCONFIGURED(Sock) ((Sock)->ConfigureState == SO_UNCONFIGURED)
125 @param[in] Sock Pointer to the socket
131 #define SOCK_IS_CONFIGURED(Sock) \
132 (((Sock)->ConfigureState == SO_CONFIGURED_ACTIVE) || \
133 ((Sock)->ConfigureState == SO_CONFIGURED_PASSIVE)) [all...] |
/external/wpa_supplicant_8/src/drivers/ |
linux_ioctl.h | 12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13 int linux_iface_up(int sock, const char *ifname); 14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 16 int linux_br_add(int sock, const char *brname); 17 int linux_br_del(int sock, const char *brname); 18 int linux_br_add_if(int sock, const char *brname, const char *ifname); 19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
20 self.sock.close()
24 self.assertEqual(self.sock.gettimeout(), None,
29 self.sock.settimeout(7.345)
30 self.assertEqual(self.sock.gettimeout(), 7.345)
32 self.sock.settimeout(3)
33 self.assertEqual(self.sock.gettimeout(), 3)
35 self.sock.settimeout(None)
36 self.assertEqual(self.sock.gettimeout(), None)
40 self.sock.settimeout(1) [all...] |
/external/python/cpython2/Lib/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/external/libnl/python/tests/ |
test-create-bridge.py | 5 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE) variable 8 cache.refill(sock) 19 cache.refill(sock) 24 cache.refill(sock)
|
/external/python/cpython3/Lib/test/ |
test_timeout.py | 31 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 34 self.sock.close() 38 self.assertEqual(self.sock.gettimeout(), None, 43 self.sock.settimeout(7.345) 44 self.assertEqual(self.sock.gettimeout(), 7.345) 46 self.sock.settimeout(3) 47 self.assertEqual(self.sock.gettimeout(), 3) 49 self.sock.settimeout(None) 50 self.assertEqual(self.sock.gettimeout(), None) 54 self.sock.settimeout(1 [all...] |
/external/deqp/framework/delibs/deutil/ |
deSocket.c | 412 deSocket* sock = (deSocket*)deCalloc(sizeof(deSocket)); local 413 if (!sock) 414 return sock; 422 sock->stateLock = deMutex_create(0); 423 sock->handle = DE_INVALID_SOCKET_HANDLE; 424 sock->state = DE_SOCKETSTATE_CLOSED; 426 return sock; 429 void deSocket_destroy (deSocket* sock) 431 if (sock->state != DE_SOCKETSTATE_CLOSED) 432 deSocket_close(sock); [all...] |
/external/autotest/client/site_tests/kernel_CryptoAPI/src/ |
crypto_load_mod.c | 21 int sock; local 26 sock = socket(AF_ALG, SOCK_SEQPACKET, 0); 27 if (sock < 0) { 32 bind(sock, (struct sockaddr *) &sa_alg, sizeof(sa_alg)); 33 close(sock);
|
/device/google/cuttlefish_common/host/libs/adb_connection_maintainer/ |
adb_connection_maintainer.cpp | 49 bool SendAll(cvd::SharedFD sock, const std::string& msg) { 52 if (!sock->IsOpen()) { 55 auto just_written = sock->Send(msg.c_str() + total_written, 65 std::string RecvAll(cvd::SharedFD sock, const size_t count) { 69 auto just_read = sock->Read(data.get() + total_read, count - total_read); 88 bool AdbConnect(cvd::SharedFD sock, int port) { 89 if (!SendAll(sock, MakeConnectMessage(port))) { 92 return RecvAll(sock, kAdbStatusResponseLength) == kAdbOkayStatusResponse; 96 std::string RecvAdbResponse(cvd::SharedFD sock) { 97 auto length_as_hex_str = RecvAll(sock, kAdbMessageLengthLength) 105 auto sock = cvd::SharedFD::SocketLocalClient(kAdbDaemonPort, SOCK_STREAM); local 117 auto sock = cvd::SharedFD::SocketLocalClient(kAdbDaemonPort, SOCK_STREAM); local [all...] |
/system/netd/libnetdutils/ |
SocketOption.cpp | 29 Status enableSockopt(Fd sock, int level, int optname) { 32 return sys.setsockopt(sock, level, optname, &on, sizeof(on)); 35 Status enableTcpKeepAlives(Fd sock, unsigned idleTime, unsigned numProbes, unsigned probeInterval) { 36 RETURN_IF_NOT_OK(enableSockopt(sock, SOL_SOCKET, SO_KEEPALIVE)); 40 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &idleTime, sizeof(idleTime))); 43 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &numProbes, sizeof(numProbes))); 46 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &probeInterval,
|
/external/syslinux/core/lwip/src/api/ |
sockets.c | 107 struct lwip_sock *sock; member in struct:lwip_setgetsockopt_data 197 struct lwip_sock *sock; local 205 sock = &sockets[s]; 207 if (!sock->conn) { 213 return sock; 276 * @param sock the socket to free 280 free_socket(struct lwip_sock *sock, int is_tcp) 285 lastdata = sock->lastdata; 286 sock->lastdata = NULL; 287 sock->lastoffset = 0 314 struct lwip_sock *sock, *nsock; local 403 struct lwip_sock *sock; local 443 struct lwip_sock *sock; local 469 struct lwip_sock *sock; local 523 struct lwip_sock *sock; local 552 struct lwip_sock *sock; local 748 struct lwip_sock *sock; local 791 struct lwip_sock *sock; local 1018 struct lwip_sock *sock; local 1143 struct lwip_sock *sock = tryget_socket(i); local 1175 struct lwip_sock *sock = tryget_socket(i); local 1237 struct lwip_sock *sock; local 1356 struct lwip_sock *sock; local 1397 struct lwip_sock *sock; local 1445 struct lwip_sock *sock = get_socket(s); local 1642 struct lwip_sock *sock; local 1845 struct lwip_sock *sock = get_socket(s); local 2052 struct lwip_sock *sock; local 2256 struct lwip_sock *sock = get_socket(s); local 2322 struct lwip_sock *sock = get_socket(s); local [all...] |
/external/autotest/client/profilers/powertop/src/ |
ethernet.c | 54 int sock; local 61 sock = socket(AF_INET, SOCK_DGRAM, 0); 62 if (sock<0) 68 ret = ioctl(sock, SIOCGIFFLAGS, &ifr); 70 close(sock); 75 close(sock); 83 ioctl(sock, SIOCETHTOOL, &ifr); 86 ioctl(sock, SIOCETHTOOL, &ifr); 88 close(sock); 95 int sock; local [all...] |
/system/core/libstats/ |
statsd_writer.c | 65 .sock = -EBADF, 76 i = atomic_load(&statsdLoggerWrite.sock); 78 int sock = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); local 79 if (sock < 0) { 88 connect(sock, (struct sockaddr*)&un, sizeof(struct sockaddr_un))) < 0) { 94 i = atomic_exchange(&statsdLoggerWrite.sock, ret); 99 close(sock); 101 ret = atomic_exchange(&statsdLoggerWrite.sock, sock); 102 if ((ret >= 0) && (ret != sock)) { 114 int sock = atomic_exchange(&statsdLoggerWrite.sock, negative_errno); local 136 int sock; local [all...] |
/external/libnl/src/ |
nl-link-ifindex2name.c | 23 struct nl_sock *sock; local 31 sock = nl_cli_alloc_socket(); 32 nl_cli_connect(sock, NETLINK_ROUTE); 33 link_cache = nl_cli_link_alloc_cache(sock);
|
nl-link-name2ifindex.c | 23 struct nl_sock *sock; local 30 sock = nl_cli_alloc_socket(); 31 nl_cli_connect(sock, NETLINK_ROUTE); 32 link_cache = nl_cli_link_alloc_cache(sock);
|