/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 90 * @param sock socket to connect to any of the given addresses 100 public Socket connectSocket(Socket sock, String host, int port, 112 if (sock == null) 113 sock = createSocket(); 123 sock.bind(isa); 136 sock.connect(new InetSocketAddress(address, port), timeout); 142 sock = new Socket(); 150 return sock; 159 * @param sock the connected socket 165 public final boolean isSecure(Socket sock) [all...] |
OperatedClientConnection.java | 121 * @param sock the unconnected socket which is about to 125 void opening(Socket sock, HttpHost target) 158 * @param sock the new socket for communicating with the target host, 168 void update(Socket sock, HttpHost target,
|
/external/webkit/Tools/BuildSlaveSupport/ |
run-performance-tests | 59 my $sock = new IO::Socket::INET(LocalHost => $perfMaster, 64 die "Could not create socket for port $reportPort: $!\n" unless $sock; 70 my $new_sock = $sock->accept(); 74 close($sock);
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushClient.java | 46 LlcpSocket sock = null; local 50 sock = service.createLlcpSocket(0, MIU, 1, 1024); 51 if (sock == null) { 55 sock.connectToService(NdefPushServer.SERVICE_NAME); 57 remoteMiu = sock.getRemoteMiu(); 63 sock.send(tmpBuffer); 75 if (sock != null) { 78 sock.close();
|
/external/quake/quake/src/WinQuake/ |
net_dgrm.cpp | 44 #define sfunc net_landrivers[sock->landriver] 163 int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data) 176 if (sock->canSend == false) 180 Q_memcpy(sock->sendMessage, data->data, data->cursize); 181 sock->sendMessageLength = data->cursize; 196 packetBuffer.sequence = BigLong(sock->sendSequence++); 197 Q_memcpy (packetBuffer.data, sock->sendMessage, dataLen); 199 sock->canSend = false; 201 if (sfunc.Write (sock->socket, (byte *)&packetBuffer, packetLen, &sock->addr) == -1 838 qsocket_t *sock; local 1221 qsocket_t *sock; local [all...] |
net_ser.cpp | 75 qsocket_t *sock;
member in struct:SerialLine_s 172 if (p->sequence == p->sock->receiveSequence)
174 p->sock->receiveSequence = (p->sequence + 1) & 0xff;
175 p->sock->receiveMessageLength += p->lengthFound;
178 Con_DPrintf("Serial: reliable out of order; got %u wanted %u\n", p->sequence, p->sock->receiveSequence);
182 p->sock->unreliableReceiveSequence = (p->sequence + 1) & 0xff;
183 p->sock->receiveMessageLength += p->lengthFound;
188 if (p->sequence == p->sock->sendSequence)
190 p->sock->sendSequence = (p->sock->sendSequence + 1) & 0xff; [all...] |
/external/wpa_supplicant/ |
eloop.h | 45 * @sock: File descriptor number for the socket 49 typedef void (*eloop_sock_handler)(int sock, void *eloop_ctx, void *sock_ctx); 90 * @sock: File descriptor number for the socket 102 int eloop_register_read_sock(int sock, eloop_sock_handler handler, 107 * @sock: File descriptor number for the socket 112 void eloop_unregister_read_sock(int sock); 116 * @sock: File descriptor number for the socket 129 int eloop_register_sock(int sock, eloop_event_type type, 135 * @sock: File descriptor number for the socket 136 * @type: Type of event for which sock was registere [all...] |
ctrl_iface_udp.c | 48 int sock; member in struct:ctrl_iface_priv 152 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 166 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 280 priv->sock = -1; 286 priv->sock = socket(PF_INET, SOCK_DGRAM, 0); 287 if (priv->sock < 0) { 296 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) 407 int sock; member in struct:ctrl_iface_global_priv [all...] |
ctrl_iface_unix.c | 50 int sock; member in struct:ctrl_iface_priv 135 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 148 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 180 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 184 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 187 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 269 priv->sock = -1; 280 priv->sock = android_get_control_socket(addr.sun_path); 281 if (priv->sock >= 0) 337 priv->sock = socket(PF_UNIX, SOCK_DGRAM, 0) 579 int sock; member in struct:ctrl_iface_global_priv [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
eloop.h | 45 * @sock: File descriptor number for the socket 49 typedef void (*eloop_sock_handler)(int sock, void *eloop_ctx, void *sock_ctx); 90 * @sock: File descriptor number for the socket 102 int eloop_register_read_sock(int sock, eloop_sock_handler handler, 107 * @sock: File descriptor number for the socket 112 void eloop_unregister_read_sock(int sock); 116 * @sock: File descriptor number for the socket 129 int eloop_register_sock(int sock, eloop_event_type type, 135 * @sock: File descriptor number for the socket 136 * @type: Type of event for which sock was registere [all...] |
/external/wpa_supplicant_8/src/utils/ |
eloop.h | 45 * @sock: File descriptor number for the socket 49 typedef void (*eloop_sock_handler)(int sock, void *eloop_ctx, void *sock_ctx); 84 * @sock: File descriptor number for the socket 96 int eloop_register_read_sock(int sock, eloop_sock_handler handler, 101 * @sock: File descriptor number for the socket 106 void eloop_unregister_read_sock(int sock); 110 * @sock: File descriptor number for the socket 123 int eloop_register_sock(int sock, eloop_event_type type, 129 * @sock: File descriptor number for the socket 130 * @type: Type of event for which sock was registere [all...] |
/external/qemu/ |
qemu-sockets-android.c | 194 int sock, nn; local 229 sock = socket_create(sock_address_get_family(e), SOCKET_STREAM); 230 if (sock < 0) { 235 socket_set_xreuseaddr(sock); 238 if (socket_connect(sock,e) < 0) { 243 socket_close(sock); 253 sock = -1; 256 return sock; 269 int sock = -1; local 327 sock = socket_create(sock_address_get_family(e), SOCKET_DGRAM) 448 int sock = -1; local 475 int sock = -1; local 491 int sock, fd; local 532 int ret, sock; local 559 int sock, len; local 587 int sock; local [all...] |
/system/netd/ |
NetlinkManager.cpp | 53 NetlinkHandler *NetlinkManager::setupSocket(int *sock, int netlinkFamily, 65 if ((*sock = socket(PF_NETLINK, SOCK_DGRAM, netlinkFamily)) < 0) { 70 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { 72 close(*sock); 76 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { 78 close(*sock); 82 if (bind(*sock, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) { 84 close(*sock); 88 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); 91 close(*sock); [all...] |
/external/chromium/net/base/ |
network_change_notifier_netlink_linux.cc | 61 int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); local 62 if (sock < 0) { 67 if (!SetNonBlocking(sock)) { 69 if (close(sock) != 0) 80 int ret = bind(sock, reinterpret_cast<struct sockaddr*>(&local_addr), 84 if (close(sock) != 0) 89 return sock;
|
/external/kernel-headers/original/linux/ |
mroute6.h | 132 struct sock; 135 extern int ip6_mroute_setsockopt(struct sock *, int, char __user *, unsigned int); 136 extern int ip6_mroute_getsockopt(struct sock *, int, char __user *, int __user *); 138 extern int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg); 143 int ip6_mroute_setsockopt(struct sock *sock, 150 int ip6_mroute_getsockopt(struct sock *sock, 157 int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg) 233 extern struct sock *mroute6_socket(struct net *net, struct sk_buff *skb) [all...] |
if_pppox.h | 181 int (*backlog_rcv)(struct sock *sk_udp, struct sk_buff *skb); 189 void (*data_ready)(struct sock *sk_raw, int length); 190 int (*backlog_rcv)(struct sock *sk_raw, struct sk_buff *skb); 193 #include <net/sock.h> 196 /* struct sock must be the first member of pppox_sock */ 197 struct sock sk; 213 static inline struct pppox_sock *pppox_sk(struct sock *sk) 218 static inline struct sock *sk_pppox(struct pppox_sock *po) 220 return (struct sock *)po; 226 int (*create)(struct net *net, struct socket *sock); [all...] |
/cts/tests/jni/ |
android_net_cts_NetlinkSocket.cpp | 32 int sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); local 33 if (sock == -1) { 39 jniSetFileDescriptorOfFD(env, fileDescriptor, sock); 55 int sock = jniGetFDFromFileDescriptor(e, fileDescriptor); local 56 int retval = sendmsg(sock, &msg, 0);
|
/external/chromium/net/tools/flip_server/ |
create_listener.cc | 141 int sock = socket(results->ai_family, local 144 if (sock == -1) { 154 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, 157 close(sock); 168 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, 171 close(sock); 176 if (bind(sock, results->ai_addr, results->ai_addrlen)) { 186 if (CloseSocket(&sock, 100)) { 201 if (!SetDisableNagle(sock)) { 206 if (listen(sock, backlog)) 264 int sock = socket(results->ai_family, local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/ |
ctrl_iface_udp.c | 48 int sock; member in struct:ctrl_iface_priv 152 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 166 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 280 priv->sock = -1; 286 priv->sock = socket(PF_INET, SOCK_DGRAM, 0); 287 if (priv->sock < 0) { 296 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) 407 int sock; member in struct:ctrl_iface_global_priv [all...] |
ctrl_iface_unix.c | 51 int sock; member in struct:ctrl_iface_priv 141 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 154 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 186 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 190 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 193 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 281 priv->sock = -1; 292 priv->sock = android_get_control_socket(addr.sun_path); 293 if (priv->sock >= 0) 359 priv->sock = socket(PF_UNIX, SOCK_DGRAM, 0) 609 int sock; member in struct:ctrl_iface_global_priv [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
ctrl_iface_udp.c | 48 int sock; member in struct:ctrl_iface_priv 152 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 166 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 280 priv->sock = -1; 286 priv->sock = socket(PF_INET, SOCK_DGRAM, 0); 287 if (priv->sock < 0) { 296 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) 407 int sock; member in struct:ctrl_iface_global_priv [all...] |
ctrl_iface_unix.c | 52 int sock; member in struct:ctrl_iface_priv 133 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 146 res = recvfrom(sock, buf, sizeof(buf) - 1, 0, 178 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, 182 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, 185 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, 274 priv->sock = -1; 285 priv->sock = android_get_control_socket(addr.sun_path); 286 if (priv->sock >= 0) 352 priv->sock = socket(PF_UNIX, SOCK_DGRAM, 0) 601 int sock; member in struct:ctrl_iface_global_priv [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
DefaultClientConnectionOperator.java | 140 Socket sock = plain_sf.createSocket(); local 141 conn.opening(sock, target); 144 Socket connsock = plain_sf.connectSocket(sock, 148 if (sock != connsock) { 149 sock = connsock; 150 conn.opening(sock, target); 163 prepareSocket(sock, context, params); 165 Socket layeredsock = layered_sf.createSocket(sock, 169 if (layeredsock != sock) { 174 conn.openCompleted(sf.isSecure(sock), params) 229 final Socket sock; local [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
SocketFactory.java | 73 * @param sock the socket to connect, as obtained from 86 * from the <code>sock</code> argument if this factory supports 96 Socket sock, 120 * @param sock the connected socket to check 134 boolean isSecure(Socket sock)
|
/external/dropbear/ |
listener.h | 38 void (*acceptor)(struct Listener*, int sock); 55 void (*acceptor)(struct Listener* listener, int sock),
|