摘要 |
The disclosed embodiments provide a system that provides a service on a first electronic device. During operation, the system uses a virtual access point interface and a discovery protocol to advertise the service on the first electronic device. The virtual access point interface may enable discovery of the service by a second electronic device without an infrastructure connection between the first and second electronic devices. Next, the system uses the virtual access point interface to establish a wireless peer-to-peer connection between the first electronic device and a second electronic device. Finally, the system provides the service to the second electronic device through the wireless peer-to-peer connection. |