/external/nist-sip/java/gov/nist/core/net/ |
DefaultNetworkLayer.java | 150 Socket sock = new Socket(); local 151 sock.bind(new InetSocketAddress(port)); 152 sock.connect(new InetSocketAddress(address, port)); 153 return sock;
|
SslNetworkLayer.java | 160 Socket sock = new Socket();
local 161 sock.bind(new InetSocketAddress(port));
162 sock.connect(new InetSocketAddress(address, port));
163 return sock;
|
/external/dropbear/ |
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);
|
cli-tcpfwd.c | 170 int sock; local 196 sock = connect_remote(iter->connectaddr, portstring, 1, NULL); 197 if (sock < 0) { 198 TRACE(("leave newtcpdirect: sock failed")) 203 ses.maxfd = MAX(ses.maxfd, sock); 207 channel->writefd = sock;
|
listener.c | 60 int sock; local 67 sock = listener->socks[j]; 68 if (FD_ISSET(sock, readfds)) { 69 listener->acceptor(listener, sock); 81 void (*acceptor)(struct Listener* listener, int sock),
|
/external/qemu/android/protocol/ |
attach-ui-impl.c | 33 int sock; member in struct:AttachUIImpl
|
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;
|
user-events-impl.c | 52 int sock; member in struct:UserEventsImpl 185 _UserEventsImpl.sock = fd; 189 loopIo_init(&_UserEventsImpl.io, _UserEventsImpl.looper, _UserEventsImpl.sock,
|
user-events-proxy.c | 28 int sock; member in struct:UserEventsProxy 89 _userEventsProxy.sock = 91 _userEventsProxy.sync_writer = syncsocket_init(_userEventsProxy.sock);
|
/frameworks/base/cmds/keystore/ |
keystore_cli.cpp | 51 int sock = socket_local_client("keystore", ANDROID_SOCKET_NAMESPACE_RESERVED, local 53 if (sock == -1) { 58 send(sock, argv[1], 1, 0); 64 send(sock, &bytes, 2, 0); 65 send(sock, argv[i], length, 0); 67 shutdown(sock, SHUT_WR); 70 if (recv(sock, &code, 1, 0) != 1) { 76 while ((i = recv(sock, &bytes[0], 1, 0)) == 1) { 79 if ((i = recv(sock, &bytes[1], 1, 0)) != 1) { 85 i = recv(sock, &bytes[offset], length - offset, 0) [all...] |
keystore_get.h | 44 int sock; local 49 sock = socket_local_client("keystore", ANDROID_SOCKET_NAMESPACE_RESERVED, 51 if (sock == -1) { 54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 && 55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 && 56 recv(sock, &code, 1, 0) == 1 && code == /* NO_ERROR */ 1 && 57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1) [all...] |
/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();
|
/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);
|
/development/tools/emulator/system/libqemu/ |
test_host_2.c | 47 socket_close(int sock) 50 close(sock); 60 int sock = socket(AF_INET, type, 0); local 61 if (sock < 0) { 71 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 74 socket_close(sock); 79 if (TFR(listen(sock, 4)) < 0) { 80 socket_close(sock); 85 return sock; 91 int sock, client; local [all...] |
/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);
|
/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/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...] |
/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();
|
/sdk/emulator/tests/ |
test-qemud-pipes.c | 18 socket_close(int sock) 21 close(sock); 30 int sock = socket(AF_INET, type, 0); local 31 if (sock < 0) { 43 if (TEMP_FAILURE_RETRY(bind(sock, &addr, sizeof(addr))) < 0) { 44 socket_close(sock); 49 if (TEMP_FAILURE_RETRY(listen(sock, 4)) < 0) { 50 socket_close(sock); 55 return sock; 60 int sock, client local [all...] |
/system/core/nexus/ |
nexctl.c | 35 static int do_monitor(int sock, int stop_after_cmd); 36 static int do_cmd(int sock, int argc, char **argv); 39 int sock; local 44 if ((sock = socket_local_client("nexus", 52 exit(do_monitor(sock, 0)); 53 exit(do_cmd(sock, argc, argv)); 56 static int do_cmd(int sock, int argc, char **argv) { 72 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 77 return do_monitor(sock, 1); 80 static int do_monitor(int sock, int stop_after_cmd) [all...] |
/system/netd/ |
ndc.c | 35 static int do_monitor(int sock, int stop_after_cmd); 36 static int do_cmd(int sock, int argc, char **argv); 39 int sock; local 44 if ((sock = socket_local_client("netd", 52 exit(do_monitor(sock, 0)); 53 exit(do_cmd(sock, argc, argv)); 56 static int do_cmd(int sock, int argc, char **argv) { 72 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 77 return do_monitor(sock, 1); 80 static int do_monitor(int sock, int stop_after_cmd) [all...] |
/system/vold/ |
vdc.c | 36 static int do_monitor(int sock, int stop_after_cmd); 37 static int do_cmd(int sock, int argc, char **argv); 40 int sock; local 45 if ((sock = socket_local_client("vold", 53 exit(do_monitor(sock, 0)); 54 exit(do_cmd(sock, argc, argv)); 57 static int do_cmd(int sock, int argc, char **argv) { 76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 81 return do_monitor(sock, 1); 84 static int do_monitor(int sock, int stop_after_cmd) [all...] |
/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...] |
/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/bluetooth/bluez/lib/bluetooth/ |
cmtp.h | 44 int sock; /* Connected socket */ member in struct:cmtp_connadd_req
|