Android Open Source - bluetooth Server Link

From Project

Back to project page bluetooth.


The source code is released under:

MIT License

If you think the Android project bluetooth listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mauriciotogneri.bluetooth.connection.server;
/* w ww. j av a  2s .c  o m*/
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import com.mauriciotogneri.bluetooth.connection.kernel.ConnectionThread;

class ServerLink extends ConnectionThread
  private final ServerEvent serverEvent;
  public ServerLink(BluetoothSocket socket, ServerEvent serverEvent) throws IOException
    this.serverEvent = serverEvent;
  protected void onReceive(BluetoothDevice device, byte[] message)
    this.serverEvent.onReceive(device, message);
  protected void onDisconnect(BluetoothDevice device)

Java Source Code List