HomeSort by relevance Sort by last modified time
    Searched full:socket (Results 1 - 25 of 2039) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSocketImplWrapper.java 22 import java.net.Socket;
27 * This class wraps the SSL functionality over an existing connected socket.
31 private Socket socket; field in class:OpenSSLSocketImplWrapper
33 protected OpenSSLSocketImplWrapper(Socket socket, String host, int port,
35 super(socket, host, port, autoClose, sslParameters);
36 if (!socket.isConnected()) {
37 throw new SocketException("Socket is not connected.");
39 this.socket = socket
    [all...]
SSLSocketWrapper.java 22 import java.net.Socket;
27 * This class wraps the SSL fuctionality over existing conneted socket.
31 private final Socket socket; field in class:SSLSocketWrapper
34 protected SSLSocketWrapper(Socket socket, boolean autoClose, SSLParametersImpl sslParameters) throws IOException {
36 if (!socket.isConnected()) {
37 throw new SocketException("Socket is not connected.");
39 this.socket = socket;
    [all...]
  /development/tools/axl/
udpServer.py 2 import time, socket, string namespace
9 svrsocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
10 svrsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
13 # hostname = socket.gethostname()
15 ip = socket.gethostbyname(hostname)
udpEater.py 24 import time, socket, string namespace
29 svrsocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
30 svrsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
33 hostname = socket.gethostname()
34 ip = socket.gethostbyname(hostname)
  /external/qemu/slirp-android/
socket.h 17 * Our socket structure
20 struct socket { struct
21 struct socket *so_next,*so_prev; /* For a linked list of sockets */
23 int s; /* The actual socket */
39 u_int8_t so_emu; /* Is the socket emulated? */
41 u_char so_type; /* Type of socket, UDP or TCP */
45 u_int so_expire; /* When the socket will expire */
47 int so_queued; /* Number of packets queued from this socket */
59 * Socket state bits. (peer means the host on the Internet,
64 #define SS_ISFCONNECTING 0x002 /* Socket is connecting to peer (non-blocking connect()'s) *
    [all...]
  /external/qemu/slirp/
socket.h 17 * Our socket structure
20 struct socket { struct
21 struct socket *so_next,*so_prev; /* For a linked list of sockets */
23 int s; /* The actual socket */
38 u_int8_t so_emu; /* Is the socket emulated? */
40 u_char so_type; /* Type of socket, UDP or TCP */
44 u_int so_expire; /* When the socket will expire */
46 int so_queued; /* Number of packets queued from this socket */
58 * Socket state bits. (peer means the host on the Internet,
63 #define SS_ISFCONNECTING 0x002 /* Socket is connecting to peer (non-blocking connect()'s) *
    [all...]
  /dalvik/tests/048-server-socket/src/
Main.java 8 * Quick server socket test.
20 ServerSocket socket; local
23 socket = new ServerSocket(7890);
25 System.out.println("couldn't open socket " + ioe.getMessage());
33 socket.close();
35 System.out.println("couldn't close socket " + ioe.getMessage());
43 socket = new ServerSocket(7890);
45 System.out.println("couldn't reopen socket " + ioe.getMessage());
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
SSLSocketFactoryImpl.java 6 import java.net.Socket;
17 public Socket createSocket(Socket socket, String s, int i, boolean flag)
19 if (socket == null) {
20 throw new IOException("incorrect socket");
30 socket = new Socket(s, i);
32 socket = new Socket(s, i)
    [all...]
  /bionic/libc/arch-arm/syscalls/
socket.S 5 .type socket, #function
6 .globl socket
10 socket: label
  /libcore/luni/src/main/java/org/apache/harmony/luni/net/
SocketOutputStream.java 22 import java.net.Socket;
27 private PlainSocketImpl socket; field in class:SocketOutputStream
30 * Constructs a SocketOutputStream for the <code>socket</code>. Write
31 * operations are forwarded to the <code>socket</code>.
33 * @param socket the socket to be written
34 * @see Socket
36 public SocketOutputStream(SocketImpl socket) {
38 this.socket = (PlainSocketImpl) socket;
    [all...]
SocketInputStream.java 22 import java.net.Socket;
26 * The SocketInputStream supports the streamed reading of bytes from a socket.
27 * Multiple streams may be opened on a socket, so care should be taken to manage
32 private final PlainSocketImpl socket; field in class:SocketInputStream
35 * Constructs a SocketInputStream for the <code>socket</code>. Read
36 * operations are forwarded to the <code>socket</code>.
38 * @param socket the socket to be read
39 * @see Socket
41 public SocketInputStream(SocketImpl socket) {
    [all...]
  /libcore/luni/src/main/java/javax/net/
SocketFactory.java 22 import java.net.Socket;
28 * to create specific socket types with additional socket-level functionality.
35 * Gets the default socket factory of the system which can be used to create
38 * @return the system default socket factory.
55 * Creates a new socket which is not connected to any remote host. This
59 * @return the created unconnected socket.
61 * if an error occurs while creating a new socket.
63 public Socket createSocket() throws IOException {
69 * Creates a new socket which is connected to the remote host specified b
    [all...]
DefaultSocketFactory.java 22 import java.net.Socket;
35 public Socket createSocket() throws IOException {
36 return new Socket();
40 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
41 return new Socket(host, port);
45 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
47 return new Socket(host, port, localHost, localPort);
51 public Socket createSocket(InetAddress host, int port) throws IOException {
52 return new Socket(host, port);
56 public Socket createSocket(InetAddress address, int port, InetAddress localAddress
    [all...]
  /hardware/ti/wlan/wl1271/CUDK/os/linux/src/
os_trans.c 19 #include <sys/socket.h>
36 SOCKET socket_id;
39 socket_id = socket(PF_INET, SOCK_STREAM, 0);
43 /* Error opening socket */
44 os_error_printf(CU_MSG_ERROR, "%s: error opening socket.\n", __FUNCTION__);
49 /* Configure the socket */
53 /* Error setting socket option */
54 os_error_printf(CU_MSG_ERROR, "%s: error setting socket option. Error %d\n", __FUNCTION__, os_get_last_error());
55 close(socket_id); //close socket
74 result = bind((SOCKET)sock, (struct sockaddr *)&server_addr, sizeof(server_addr))
    [all...]
  /system/wlan/ti/wilink_6_1/CUDK/os/linux/src/
os_trans.c 19 #include <sys/socket.h>
36 SOCKET socket_id;
39 socket_id = socket(PF_INET, SOCK_STREAM, 0);
43 /* Error opening socket */
44 os_error_printf(CU_MSG_ERROR, "%s: error opening socket.\n", __FUNCTION__);
49 /* Configure the socket */
53 /* Error setting socket option */
54 os_error_printf(CU_MSG_ERROR, "%s: error setting socket option. Error %d\n", __FUNCTION__, os_get_last_error());
55 close(socket_id); //close socket
74 result = bind((SOCKET)sock, (struct sockaddr *)&server_addr, sizeof(server_addr))
    [all...]
  /external/chromium/net/websockets/
websocket_throttle.h 18 // 1. If the user agent already has a Web Socket connection to the
24 virtual int OnStartOpenConnection(SocketStream* socket,
26 virtual int OnRead(SocketStream* socket, const char* data, int len,
28 virtual int OnWrite(SocketStream* socket, const char* data, int len,
30 virtual void OnClose(SocketStream* socket);
43 // Puts |socket| in |queue_| and queues for the destination addresses
44 // of |socket|. Also sets |state| as UserData of |socket|.
45 // If other socket is using the same destination address, set |state| waiting.
46 void PutInQueue(SocketStream* socket, WebSocketState* state)
    [all...]
  /external/kernel-headers/original/linux/
net.h 2 * NET An implementation of the SOCKET network access protocol.
22 #include <asm/socket.h>
49 SS_UNCONNECTED, /* unconnected to any socket */
51 SS_CONNECTED, /* connected to socket */
68 * enum sock_type - Socket types
69 * @SOCK_STREAM: stream (connection) socket
70 * @SOCK_DGRAM: datagram (conn.less) socket
71 * @SOCK_RAW: raw socket
73 * @SOCK_SEQPACKET: sequential packet socket
74 * @SOCK_DCCP: Datagram Congestion Control Protocol socket
107 struct socket { struct
    [all...]
  /external/apache-http/src/org/apache/http/impl/
SocketHttpClientConnection.java 36 import java.net.Socket;
49 * network Socket in order to receive and transmit data.
61 private Socket socket = null; field in class:SocketHttpClientConnection
80 final Socket socket,
83 return new SocketInputBuffer(socket, buffersize, params);
87 final Socket socket,
90 return new SocketOutputBuffer(socket, buffersize, params)
    [all...]
SocketHttpServerConnection.java 36 import java.net.Socket;
49 * network Socket in order to receive and transmit data.
61 private Socket socket = null; field in class:SocketHttpServerConnection
80 final Socket socket,
83 return new SocketInputBuffer(socket, buffersize, params);
87 final Socket socket,
90 return new SocketOutputBuffer(socket, buffersize, params)
    [all...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/
socketvar.h 3 #include <sys/socket.h>
  /external/chromium/net/socket_stream/
socket_stream_throttle.h 23 // Called when |socket| is about to open connection.
27 virtual int OnStartOpenConnection(SocketStream* socket,
33 // Called when |socket| read |len| bytes of |data|.
34 // May wake up another waiting socket.
35 // Returns net::OK if |socket| can continue to run.
36 // Returns net::ERR_IO_PENDING if |socket| should suspend to run. In this
38 virtual int OnRead(SocketStream* socket, const char* data, int len,
44 // Called when |socket| wrote |len| bytes of |data|.
45 // May wake up another waiting socket.
46 // Returns net::OK if |socket| can continue to run
    [all...]
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
Forwarder.java 24 import java.net.Socket;
36 private Socket from, to;
40 public Forwarder (Socket from, Socket to, ForwardServer server) {
61 private void shutdown(Socket socket) {
63 socket.shutdownInput();
65 Log.v(LOGTAG, "Socket#shutdownInput", e);
68 socket.shutdownOutput();
70 Log.v(LOGTAG, "Socket#shutdownOutput", e)
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldSocketTest.java 30 import java.net.Socket;
46 Socket s;
60 // create the socket and then validate some basic state
61 s = new Socket();
62 assertFalse("new socket should not be connected", s.isConnected());
63 assertFalse("new socket should not be bound", s.isBound());
64 assertFalse("new socket should not be closed", s.isClosed());
65 assertFalse("new socket should not be in InputShutdown", s
67 assertFalse("new socket should not be in OutputShutdown", s
73 // Test for method java.net.Socket(java.lang.String, int
103 Socket socket = null; local
786 Socket socket = new Socket(); local
1147 Socket socket = new Socket(proxy); local
1369 Socket socket = channel.socket(); local
1690 Socket socket = channel.socket(); local
2047 Socket socket = channel.socket(); local
2409 Socket socket = new Socket(); local
2420 Socket socket = new Socket(); local
2431 Socket socket = new Socket(); local
2462 Socket socket = channel.socket(); local
    [all...]
  /frameworks/base/voip/jni/rtp/
RtpStream.cpp 22 #include <sys/socket.h>
48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); local
50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 ||
51 getsockname(socket, (sockaddr *)&ss, &len) != 0) {
53 ::close(socket);
61 env->SetIntField(thiz, gNative, socket);
64 ::close(socket);
66 socket = ::socket(ss.ss_family, SOCK_DGRAM, 0)
91 int socket = ::dup(env->GetIntField(thiz, gNative)); local
100 int socket = env->GetIntField(thiz, gNative); local
    [all...]
  /system/core/rootdir/etc/
dbus.conf 8 <!-- Only allow socket-credentials-based authentication -->
11 <!-- Only listen on a local socket. (abstract=/path/to/socket
15 <listen>unix:path=/dev/socket/dbus</listen>
17 <!-- Allow everything, D-Bus socket is protected by unix filesystem

Completed in 521 milliseconds

1 2 3 4 5 6 7 8 91011>>