| 64 /** |
64 /** |
| 65 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery |
65 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery |
| 66 * is already done. Otherwise the callback is called when the discovery is over |
66 * is already done. Otherwise the callback is called when the discovery is over |
| 67 * and NULL is returned. |
67 * and NULL is returned. |
| 68 * |
68 * |
| 69 * @param cb The callback to call when the STUN discovery is finished if the |
69 * @cb: The callback to call when the STUN discovery is finished if the |
| 70 * discovery would block. If the discovery is done, this is NOT |
70 * discovery would block. If the discovery is done, this is NOT |
| 71 * called. |
71 * called. |
| 72 * |
72 * |
| 73 * @return a PurpleStunNatDiscovery which includes the public IP and the type |
73 * Returns: a PurpleStunNatDiscovery which includes the public IP and the type |
| 74 * of NAT or NULL is discovery would block |
74 * of NAT or NULL is discovery would block |
| 75 */ |
75 */ |
| 76 PurpleStunNatDiscovery *purple_stun_discover(StunCallback cb); |
76 PurpleStunNatDiscovery *purple_stun_discover(StunCallback cb); |
| 77 |
77 |
| 78 void purple_stun_init(void); |
78 void purple_stun_init(void); |