Code example for BluetoothServerSocket

Methods: accept

0
	} 
 
	@Override 
	protected CC acceptClientConnector() throws IOException { 
		/* Wait for an incoming connection. */ 
		final BluetoothSocket clientBluetoothSocket = this.mBluetoothServerSocket.accept();
 
		/* Spawn a new ClientConnector, which send and receive data to and from the client. */ 
		try { 
			return this.newClientConnector(new BluetoothSocketConnection(clientBluetoothSocket));
		} catch (BluetoothException e) {
			/* Can not happen, as the same check is also performed in the consutuctor. */ 
			return null; 
		} 
	} 
 
	@Override 
	public void onTerminate() { 
		try { 
			this.mBluetoothServerSocket.close(); // TODO Put to SocketUtils
		} catch (final IOException e) {