diff options
author | Nick Pelly <npelly@google.com> | 2009-05-26 19:13:43 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-05-29 16:16:05 -0700 |
commit | c790096ad32d9f34263f31c502404e31e3c175db (patch) | |
tree | ffd0b84087356c1ccb493babe8bc896727d3c861 /graphics/java/android/renderscript/ProgramStore.java | |
parent | 9b50ade5b7d186354087cf7cca339c17cbd3622d (diff) |
New BluetoothSocket API.
Modeled on blocking java.net.Socket and java.net.ServerSocket library.
Public interface is:
public final class BluetoothSocket implements Closeable {
public static BluetoothSocket createRfcommSocket(String address, int port) throws IOException;
public static BluetoothSocket createInsecureRfcommSocket(String address, int port) throws IOException;
public void connect() throws IOException;
public void close() throws IOException;
public String getAddress();
public InputStream getInputStream() throws IOException;
public OutputStream getOutputStream() throws IOException;
}
public final class BluetoothServerSocket implements Closeable {
public static BluetoothServerSocket listenUsingRfcommOn(int port) throws IOException;
public static BluetoothServerSocket listenUsingUnsecureRfcommOn(int port) throws IOException;
public BluetoothSocket accept() throws IOException;
public BluetoothSocket accept(int timeout) throws IOException;
public void close() throws IOException;
}
Diffstat (limited to 'graphics/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions