コード例 #1
0
ファイル: BluetopiaFakeApi.cs プロジェクト: jehy/32feet.NET
        int IBluetopiaApi.SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                               NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
        {
#if DEBUG
            return(0x12345);
#else
            return((int)BluetopiaError.UNSUPPORTED_PLATFORM_ERROR);
#endif
        }
コード例 #2
0
ファイル: BluetopiaRealApi.cs プロジェクト: zhubin-12/32feet
 int IBluetopiaApi.SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                        NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return(NativeMethods.SPP_Open_Server_Port(BluetoothStackID, ServerPort,
                                               SPP_Event_Callback, CallbackParameter));
 }
コード例 #3
0
ファイル: BluetopiaRealApi.cs プロジェクト: zhubin-12/32feet
 int IBluetopiaApi.SPP_Open_Remote_Port(uint BluetoothStackID, Int64 BD_ADDR, uint ServerPort, NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return(NativeMethods.SPP_Open_Remote_Port(BluetoothStackID, BD_ADDR, ServerPort,
                                               SPP_Event_Callback, CallbackParameter));
 }
コード例 #4
0
 internal BluetopiaRfcommStream(BluetopiaFactory factory)
 {
     Debug.Assert(factory != null, "factory NULL");
     _fcty         = factory;
     _callbackAAAA = HandleSPP_Event_Callback;
 }
コード例 #5
0
ファイル: BluetopiaFakeApi.cs プロジェクト: jehy/32feet.NET
 int IBluetopiaApi.SPP_Open_Remote_Port(uint BluetoothStackID, Int64 BD_ADDR, uint ServerPort, NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return((int)BluetopiaError.UNSUPPORTED_PLATFORM_ERROR);
 }
コード例 #6
0
 internal static extern int SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                                 NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter);
コード例 #7
0
 internal static extern int SPP_Open_Remote_Port(uint BluetoothStackID,
                                                 BD_ADDR_BY_VALUE BD_ADDR, uint ServerPort,
                                                 NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter);