Package org.javabluetooth.stack.sdp

Examples of org.javabluetooth.stack.sdp.SDPServer


    /**
     * @see org.javabluetooth.stack.BluetoothStack#openL2CAPService(org.javabluetooth.stack.l2cap.L2CAPChannel, short,
     * short, byte[])
     */
    public void registerL2CAPService(L2CAPChannel channel, short serviceUUID, short browseUUID, byte[] serviceRecord) {
        SDPServer sdpServer = SDPServer.getSDPServer();
        BluetoothTCPChannelFactory channelFactory = new BluetoothTCPChannelFactory(channel);
        sdpServer.registerService(channelFactory, serviceUUID, browseUUID, serviceRecord);
    }
View Full Code Here


        System.arraycopy(packet, 9, serviceRecord, 0, serviceRecord.length);
        BluetoothTCPChannel l2capChannel = new BluetoothTCPChannel(this, channelHandel);
        if (channels[channelHandel] != null) channels[channelHandel].close();
        channels[channelHandel] = l2capChannel;
        BluetoothTCPChannelFactory channelFactory = new BluetoothTCPChannelFactory(l2capChannel);
        SDPServer sdpServer = SDPServer.getSDPServer();
        sdpServer.registerService(channelFactory, serviceUUID, browseUUID, serviceRecord);
    }
View Full Code Here

        bluetooth = BluetoothStack.getBluetoothStack();
        bluetooth.send_HCI_HC_Change_Local_Name("TINI BLUE");
        bluetooth.send_HCI_HC_Write_Scan_Enable((byte)0x03);
        bluetooth.send_HCI_HC_Write_Event_Filter_Connection_Setup((byte)0x02);
        bluetooth.send_HCI_HC_Write_Event_Filter_Inquiry_Result();
        SDPServer sddb = SDPServer.getSDPServer();
        LocalDevice localDev = LocalDevice.getLocalDevice();
        //System.out.println("Local Bluetooth Name is "+localDev.getFriendlyName());
        //System.out.println("IAC is "+localDev.getDiscoverable());
        //System.out.println("set Discoverable "+localDev.setDiscoverable(DiscoveryAgent.GIAC));
        //System.out.println("IAC is "+localDev.getDiscoverable());
View Full Code Here

TOP

Related Classes of org.javabluetooth.stack.sdp.SDPServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.