摘要 |
A method for establishing a communication between a first peer device and a second peer device is provided. The method includes detecting the second peer device by the first peer device. The method also includes checking, by the first peer device, whether there is a deposited second address of the second peer device in an address database of the first peer device. The method further includes setting a role for the first peer device by the first peer device according to a first address and a second address when there is the deposited second address of the second peer device in the address database of the first peer device. The method further includes establishing a connection between the first peer device and the second peer device based on the role set for the first peer device. |