简体   繁体   English

将数据从ip套接字转发到蓝牙套接字。 C#

[英]Forward data from ip socket to bluetooth socket. c#

I want to listen to incoming ip sockets on a specific port and forward them using bluetooth sockets. 我想在特定端口上监听传入的IP套接字,并使用蓝牙套接字转发它们。 Is this possible? 这可能吗?

I'm using c# but I can use java if it's easier to code. 我正在使用c#,但如果可以更轻松地编写代码,则可以使用java。

In fact, the object was using SMB protocol over Bluetooth connexion. 实际上,该对象正在通过蓝牙连接使用SMB协议。 I found a Bluetooth profile that is similar to SMB protocol and that enables me to explore the sdcard from my PC. 我找到了一个类似于SMB协议的蓝牙配置文件,它使我能够从PC上浏览sdcard。 the profile is OBEX FTP (File Transfert Profile) and i found java APIs. 该配置文件是OBEX FTP(文件传输配置文件),我发现了Java API。 Thank you for your answers. 谢谢您的回答。

I don't have much knowledge.... But I found these two link.... it may helps u... 1st.. Bluetooth 我没有太多的知识....但是我发现这两个链接....它可以帮助ü... 1 ... 蓝牙
2nd.. OTN 2 .. OTN

The Bluetooth equivalent of TCP sockets are called RFCOMM sockets. TCP套接字的蓝牙等效项称为RFCOMM套接字。 You can write an app to open a TCP socket, read the data, and write it out to an RFCOMM socket. 您可以编写一个应用程序来打开TCP套接字,读取数据,然后将其写出到RFCOMM套接字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过网络流套接字发送byte []数据。 C# - send byte[] data over network stream socket. c# Java(客户端)和 C#(服务器)TCP 套接字。 和服务器从客户端读取无限的最后数据 - Java(client) and C#(Server) TCP Socket. and Server read infinite last data from client 通过Socket从C#到Android。 找不到我的错误 - From C# to Android via Socket. Can't find my mistake C#套接字。 只能收到第一条消息 - C# socket. Only able to receive first message 在C#中接收TCP / IP套接字数据时出现问题 - Problem in receiving TCP/IP socket data in C# 当我尝试使用套接字连接时,C#GUI挂起。 需要一种方法来分离GUI线程? - C# GUI hangs when i try to connect using socket. need a way to separate GUI Thread? 在c#中作为Windows服务运行时,TCP / IP套接字不从机器读取数据 - TCP/IP Socket is not reading data from machine when running as Windows Service in c# C#获取UDP服务器套接字从中接收数据的客户端的IP地址 - C# Getting the IP Address of the client which the UDP server socket received data from 如何使用C#中的套接字编程从IP摄像机捕获 - How to capture from ip camera using socket programming in c# C# - 从客户端检查 TCP/IP 套接字状态 - C# - Check TCP/IP socket status from client side
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM