简体   繁体   English

VpnService安卓4.0

[英]VpnService Android 4.0

Please i need an example of using VpnService in Android 4.0 with PPTP VPN Server. 我需要一个在Android 4.0中将VpnService与PPTP VPN Server一起使用的示例。 I'm tried ToyVpnService but it's not using a username & passwd to connect to VPN server. 我已经尝试过ToyVpnService,但是它没有使用用户名和密码来连接到VPN服务器。

The VPNService API is not for configuring the system VPN Services but for implementing your own VPN solution. VPNService API不是用于配置系统VPN服务,而是用于实现自己的VPN解决方案。 You can for example implement protocols that are not implemented by the system like OpenVPN. 例如,您可以实施系统未实现的协议,例如OpenVPN。

To use pptp with the VPNService API you need to implement the PPTP protocol yourself (or port an existing implementation (should not be difficult)) 要将pptp与VPNService API结合使用,您需要自己实现PPTP协议(或移植现有的实现(应该不难))

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM