[英]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.
谢谢您的回答。
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.