/external/wpa_supplicant_8/src/drivers/ |
netlink.c | 25 int sock; member in struct:netlink_data 42 static void netlink_receive(int sock, void *eloop_ctx, void *sock_ctx) 54 left = recvfrom(sock, buf, sizeof(buf), MSG_DONTWAIT, 108 netlink->sock = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); 109 if (netlink->sock < 0) { 119 if (bind(netlink->sock, (struct sockaddr *) &local, sizeof(local)) < 0) 127 eloop_register_read_sock(netlink->sock, netlink_receive, netlink, 138 if (netlink->sock >= 0) { 139 eloop_unregister_read_sock(netlink->sock); 140 close(netlink->sock); [all...] |
/external/dropbear/ |
dbutil.c | 156 static void set_sock_priority(int sock) { 162 setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&val, sizeof(val)); 168 setsockopt(sock, IPPROTO_IP, IP_TOS, (void*)&val, sizeof(val)); 175 setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &val, sizeof(val)); 194 int sock; local 241 sock = socks[nsock]; /* For clarity */ 243 if (sock < 0) { 252 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val)); 255 setsockopt(sock, SOL_SOCKET, SO_LINGER, (void*)&linger, sizeof(linger)); 257 set_sock_priority(sock); 307 int sock; local [all...] |
cli-main.c | 42 int sock; local 63 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, 66 if (sock < 0) { 77 cli_session(sock, hostandport);
|
common-session.c | 53 void common_session_init(int sock, char* remotehost) { 59 ses.sock = sock; 60 ses.maxfd = sock; 134 if (ses.sock != -1) { 135 FD_SET(ses.sock, &readfd); 137 FD_SET(ses.sock, &writefd); 180 if (ses.sock != -1) { 181 if (FD_ISSET(ses.sock, &writefd) && !isempty(&ses.writequeue)) { 185 if (FD_ISSET(ses.sock, &readfd)) [all...] |
/external/qemu/ |
qemu-sockets.c | 239 int sock,rc; local 281 sock = qemu_socket(e->ai_family, e->ai_socktype, e->ai_protocol); 282 if (sock < 0) { 287 setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(void*)&on,sizeof(on)); 290 if (connect(sock,e->ai_addr,e->ai_addrlen) < 0) { 295 closesocket(sock); 303 return sock; 316 int sock = -1, rc; local 374 sock = qemu_socket(peer->ai_family, peer->ai_socktype, peer->ai_protocol); 375 if (sock < 0) 503 int sock = -1; local 530 int sock = -1; local 545 int sock, fd; local 595 int sock; local 626 int sock, len; local 654 int sock; local [all...] |
/development/tools/emulator/opengl/shared/OpenglCodecCommon/ |
TcpStream.h | 29 TcpStream(int sock, size_t bufSize);
|
TcpStream.cpp | 36 TcpStream::TcpStream(int sock, size_t bufSize) : 37 SocketStream(sock, bufSize) 47 setsockopt( sock, IPPROTO_TCP, TCP_NODELAY, (const char*)&flag, sizeof(flag) );
|
/external/kernel-headers/original/linux/ |
netlink.h | 182 extern struct sock *netlink_kernel_create(struct net *net, 187 extern void netlink_kernel_release(struct sock *sk); 188 extern int __netlink_change_ngroups(struct sock *sk, unsigned int groups); 189 extern int netlink_change_ngroups(struct sock *sk, unsigned int groups); 190 extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group); 191 extern void netlink_clear_multicast_users(struct sock *sk, unsigned int group); 193 extern int netlink_has_listeners(struct sock *sk, unsigned int group); 194 extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 pid, int nonblock); 195 extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 pid, 197 extern void netlink_set_err(struct sock *ssk, __u32 pid, __u32 group, int code) [all...] |
udp.h | 55 static inline struct udp_sock *udp_sk(const struct sock *sk)
|
/external/qemu/android/protocol/ |
attach-ui-proxy.c | 39 int sock; member in struct:AttachUIProxy 91 _attachUiProxy.sock = fd; 93 loopIo_init(&_attachUiProxy.io, _attachUiProxy.looper, _attachUiProxy.sock, 109 _attachUiProxy.sock = -1;
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLSessionBindingListenerTest.java | 63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() local 65 SSLSession ss = sock.getSession(); 77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() local 79 SSLSession ss = sock.getSession();
|
/external/apache-http/src/org/apache/http/impl/conn/ |
DefaultClientConnection.java | 108 public void opening(Socket sock, HttpHost target) throws IOException { 110 this.socket = sock; 115 sock.close(); // allow this to throw... 151 Socket sock = this.socket; // copy volatile attribute local 152 if (sock != null) 153 sock.close(); 209 public void update(Socket sock, HttpHost target, 223 if (sock != null) { 224 this.socket = sock; 225 bind(sock, params) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
UDPMessageProcessor.java | 79 protected DatagramSocket sock; field in class:UDPMessageProcessor 107 this.sock = sipStack.getNetworkLayer().createDatagramSocket(port, 110 sock.setReceiveBufferSize(sipStack.getReceiveUdpBufferSize()); 111 sock.setSendBufferSize(sipStack.getSendUdpBufferSize()); 115 * prevent sock.receive() from blocking forever 118 sock.setSoTimeout((int) sipStack.getThreadAuditor().getPingIntervalInMillisecs()); 126 super.setIpAddress( sock.getLocalAddress() ); 188 int bufsize = sock.getReceiveBufferSize(); 191 sock.receive(packet); 282 sock.close() [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
eloop.c | 22 int sock; member in struct:eloop_sock 81 int sock, eloop_sock_handler handler, 95 tmp[table->count].sock = sock; 101 if (sock > eloop.max_sock) 102 eloop.max_sock = sock; 110 int sock) 118 if (table->table[i].sock == sock) 144 FD_SET(table->table[i].sock, fds) [all...] |
/external/wpa_supplicant/ |
eloop.c | 22 int sock; member in struct:eloop_sock 81 int sock, eloop_sock_handler handler, 95 tmp[table->count].sock = sock; 101 if (sock > eloop.max_sock) 102 eloop.max_sock = sock; 110 int sock) 118 if (table->table[i].sock == sock) 144 FD_SET(table->table[i].sock, fds) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldAndroidDatagramTest.java | 167 DatagramSocket sock = null; local 171 sock = new DatagramSocket(); 173 sock.setSoTimeout(timeout); 174 sock.receive(pack); 183 if (sock != null) { 184 sock.close();
|
/external/clang/test/Analysis/ |
casts.c | 17 void f(int sock) { 21 getsockname(sock, sockaddr, &addrlen);
|
/libcore/luni/src/main/java/javax/net/ssl/ |
HandshakeCompletedEvent.java | 37 * @param sock 42 public HandshakeCompletedEvent(SSLSocket sock, SSLSession s) { 43 super(sock);
|
/external/bluetooth/bluez/lib/bluetooth/ |
cmtp.h | 44 int sock; /* Connected socket */ member in struct:cmtp_connadd_req
|
/external/srtp/test/ |
rtpw.c | 115 leave_group(int sock, struct ip_mreq mreq, char *name); 129 int sock, ret; local 257 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); 258 if (sock < 0) { 275 ret = setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, 286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq, 399 ret = bind(sock, (struct sockaddr *) &local, sizeof(struct sockaddr_in)); 413 rtp_sender_init(snd, sock, name, ssrc); 427 leave_group(sock, mreq, argv[0]); 448 if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0) [all...] |
/external/valgrind/main/none/tests/ |
fdleak_cmsg.stderr.exp | 4 Open AF_UNIX socket ...: /tmp/sock 7 Open AF_UNIX socket ...: /tmp/sock
|
/system/core/nexus/ |
TiwlanEventListener.h | 30 TiwlanEventListener(int sock);
|
/external/bluetooth/bluez/src/ |
sdpd.h | 41 int sock; member in struct:request 61 void sdp_svcdb_collect_all(int sock); 62 void sdp_svcdb_set_collectable(sdp_record_t *rec, int sock);
|
/bionic/libc/kernel/common/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/development/ndk/platforms/android-3/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|