创建一个无线点对点Android和PC之间的连接 [英] Creating a Wifi peer to peer connection between Android and PC

查看:145
本文介绍了创建一个无线点对点Android和PC之间的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于Android操作系统(4.x和更高版本)的P2P功能的问题。我有一台PC的程序使用了Boost C ++库,可以作为服务器或作为客户端功能。现在我有一个Android应用程序有使用Java插座的服务器。此方案需要一的accessPoint连接到彼此。

I have a question about the p2p functionality of Android OS (4.x and higher). I have a PC program that makes use of the Boost C++ library that can function as a server or as a client. Now i have a Android app that has a server using Java sockets. This program need a accesspoint to connect to each other.

我正在寻找一种方式来连接Android的服务器和PC客户端程序没有的accessPoint。环顾四周后,我发现Android有一个P2P库。
Android的P2P
作为一个读它,你只能互相连接两个Android设备,我的问题是,如果有可能使用这个库的Andr​​oid设备连接到使用WiFi的P2P的PC?或者,如果有一个其他方法可行?所有建议,欢迎!

I'm looking for a way to connect the Android server and the PC client program without a accesspoint. After looking around i found out that Android has a p2p library. Android P2P As a read it you can only connect two Android devices with each other, my question is if it is possible to use this library to connect the Android device to the PC using wifi p2p? Or if there is a other possiblity? All suggestions are welcome!

推荐答案

罗伊,看看这个:的 http://en.wikipedia.org/wiki/Wi-Fi_Direct
无线网络P2P现在被称为Wi-Fi直连,这的确是可能的两个设备只要连接为的有一个的设备的支持它。因此,在P2P模式,并没有任何特殊的configuraiton电脑的Andr​​oid设备应该可以正常工作。然而,PC能够(可能)一次仅连接到一个接入点,从它的角度看的Andr​​oid设备是接入点,就必须从它的通常的接入点断开连接到Android装置。

Roy, have a look at this: http://en.wikipedia.org/wiki/Wi-Fi_Direct WiFi P2P is now called WiFi Direct, and it is indeed possible to connect two devices as long as one of the devices supports it. So Android device in P2P mode and a PC without any special configuraiton should work fine. However, the PC can (probably) only connect to one access point at a time, from its perspective the Android device is the access point, it would have to disconnect from its usual access point to connect to the Android device.

还检查了SoftAP。

Also check out SoftAP.

这篇关于创建一个无线点对点Android和PC之间的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆