diff options
author | Nick Pelly <npelly@google.com> | 2009-05-26 19:13:43 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-05-26 19:39:21 -0700 |
commit | 0b6955a48bad9aee01ae2f0c06d3f168ca603ab7 (patch) | |
tree | 8cb631ba1b84c0def8752f8dece5a9b70bb2d0fb /libs/utils/executablepath_linux.cpp | |
parent | 1ab55ea04ff25bf3d57a3c5a1656343ac6eb6acb (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 'libs/utils/executablepath_linux.cpp')
0 files changed, 0 insertions, 0 deletions