Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 48) sorted by relevance

12

/development/tools/axl/
DudpEater.py24 import time, socket, string
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)
DudpServer.py2 import time, socket, string
9 svrsocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
10 svrsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
15 ip = socket.gethostbyname(hostname)
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DChatManager.java18 private Socket socket = null; field in ChatManager
21 public ChatManager(Socket socket, Handler handler) { in ChatManager() argument
22 this.socket = socket; in ChatManager()
34 iStream = socket.getInputStream(); in run()
35 oStream = socket.getOutputStream(); in run()
61 socket.close(); in run()
DGroupOwnerSocketHandler.java19 ServerSocket socket = null; field in GroupOwnerSocketHandler
26 socket = new ServerSocket(4545); in GroupOwnerSocketHandler()
50 pool.execute(new ChatManager(socket.accept(), handler)); in run()
55 if (socket != null && !socket.isClosed()) in run()
56 socket.close(); in run()
DClientSocketHandler.java26 Socket socket = new Socket(); in run() local
28 socket.bind(null); in run()
29 socket.connect(new InetSocketAddress(mAddress.getHostAddress(), in run()
32 chat = new ChatManager(socket, handler); in run()
37 socket.close(); in run()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DFileTransferService.java50 Socket socket = new Socket(); in onHandleIntent() local
55 socket.bind(null); in onHandleIntent()
56 socket.connect((new InetSocketAddress(host, port)), SOCKET_TIMEOUT); in onHandleIntent()
58 Log.d(WiFiDirectActivity.TAG, "Client socket - " + socket.isConnected()); in onHandleIntent()
59 OutputStream stream = socket.getOutputStream(); in onHandleIntent()
72 if (socket != null) { in onHandleIntent()
73 if (socket.isConnected()) { in onHandleIntent()
75 socket.close(); in onHandleIntent()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbDevice.java118 AdbSocket socket; in openSocket() local
121 socket = new AdbSocket(this, id); in openSocket()
122 mSockets.put(id, socket); in openSocket()
124 if (socket.open(destination)) { in openSocket()
125 return socket; in openSocket()
137 public void socketClosed(AdbSocket socket) { in socketClosed() argument
139 mSockets.remove(socket.getId()); in socketClosed()
178 AdbSocket socket = getSocket(message.getArg1()); in dispatchMessage() local
179 if (socket == null) { in dispatchMessage()
182 socket.handleMessage(message); in dispatchMessage()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java169 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument
196 mConnectedThread = new ConnectedThread(socket, socketType); in connected()
319 BluetoothSocket socket = null; in run() local
326 socket = mmServerSocket.accept(); in run()
333 if (socket != null) { in run()
339 connected(socket, socket.getRemoteDevice(), in run()
346 socket.close(); in run()
452 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument
454 mmSocket = socket; in ConnectedThread()
460 tmpIn = socket.getInputStream(); in ConnectedThread()
[all …]
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChatService.java151 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument
172 mConnectedThread = new ConnectedThread(socket, socketType); in connected()
294 BluetoothSocket socket = null; in run() local
301 socket = mmServerSocket.accept(); in run()
308 if (socket != null) { in run()
314 connected(socket, socket.getRemoteDevice(), in run()
321 socket.close(); in run()
427 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument
429 mmSocket = socket; in ConnectedThread()
435 tmpIn = socket.getInputStream(); in ConnectedThread()
[all …]
/development/apps/Development/src/com/android/development/
DLogViewer.java77 final Socket socket; field in LogViewer.LogReader
85 this.socket = new Socket("127.0.0.1", 5040); in LogReader()
86 this.in = new DataInputStream(this.socket.getInputStream()); in LogReader()
88 this.socket.getOutputStream().write('\n'); in LogReader()
89 this.socket.getOutputStream().write('\n'); in LogReader()
DConnectivity.java680 Socket socket = null; in onBoundSocketRequest() local
682 socket = new Socket(remote, 80, local, 6000); in onBoundSocketRequest()
688 PrintWriter out = new PrintWriter(socket.getOutputStream(), true); in onBoundSocketRequest()
717 Socket socket = null; in onDefaultSocket() local
719 socket = new Socket(remote, 80); in onDefaultSocket()
725 PrintWriter out = new PrintWriter(socket.getOutputStream(), true); in onDefaultSocket()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServer.java110 Socket socket = sss.accept(); in start()
116 new InputStreamReader(socket.getInputStream())); in start()
117 PrintWriter out = new PrintWriter(socket in start()
137 socket.close(); in start()
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java97 private synchronized void setSocket(Socket socket) { in setSocket() argument
99 if (socket == null) { in setSocket()
112 mSocket = socket; in setSocket()
265 Socket socket = getSocket(); in sendMessage() local
266 if (socket == null) { in sendMessage()
268 } else if (socket.getOutputStream() == null) { in sendMessage()
/development/ndk/sources/android/libportable/arch-mips64/
Dsocket.c131 extern int REAL(socket)(int, int, int);
133 int WRAP(socket)(int domain, int type, int protocol) { in WRAP() argument
140 rv = REAL(socket)(domain, socktype_pton(type), protocol); in WRAP()
/development/ndk/sources/android/libportable/arch-mips/
Dsocket.c131 extern int REAL(socket)(int, int, int);
133 int WRAP(socket)(int domain, int type, int protocol) { in WRAP() argument
140 rv = REAL(socket)(domain, socktype_pton(type), protocol); in WRAP()
/development/ndk/platforms/android-L/include/sys/
Dsocket.h285 __socketcall int socket(int, int, int);
322 ssize_t recv(int socket, void* buf, size_t len, int flags) { in recv() argument
323 return recvfrom(socket, buf, len, flags, NULL, 0); in recv()
/development/ndk/platforms/android-3/include/sys/
Dsocket.h63 __socketcall int socket(int, int, int);
/development/ndk/platforms/android-9/arch-mips/include/sys/
Dsocket.h73 __socketcall int socket(int, int, int);
/development/ndk/platforms/android-3/include/linux/sunrpc/
Dxprt.h96 struct socket * sock;
/development/samples/ToyVpn/server/linux/
DToyVpnServer.cpp87 int tunnel = socket(AF_INET6, SOCK_DGRAM, 0); in get_tunnel()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java140 if (!protect(tunnel.socket())) { in run()
/development/ndk/platforms/android-18/arch-x86/symbols/
Dlibc.so.functions.txt750 socket
/development/ndk/platforms/android-17/arch-x86/symbols/
Dlibc.so.functions.txt753 socket
/development/ndk/platforms/android-14/arch-mips/symbols/
Dlibc.so.functions.txt761 socket
/development/ndk/platforms/android-14/arch-x86/symbols/
Dlibc.so.functions.txt755 socket

12