libpurple/nat-pmp.h

branch
gtkdoc-conversion
changeset 35393
00f876b129bc
parent 32789
3c8069736c9d
child 35395
bf3f004adbf1
child 37023
d9bcdc9a91e6
equal deleted inserted replaced
35392:cc123f0d84af 35393:00f876b129bc
54 char *purple_pmp_get_public_ip(void); 54 char *purple_pmp_get_public_ip(void);
55 55
56 /** 56 /**
57 * Remove the NAT-PMP mapping for a specified type on a specified port 57 * Remove the NAT-PMP mapping for a specified type on a specified port
58 * 58 *
59 * @param type The PurplePmpType 59 * @type: The PurplePmpType
60 * @param privateport The private port on which we are listening locally 60 * @privateport: The private port on which we are listening locally
61 * @param publicport The public port on which we are expecting a response 61 * @publicport: The public port on which we are expecting a response
62 * @param lifetime The lifetime of the mapping. It is recommended that this 62 * @lifetime: The lifetime of the mapping. It is recommended that this
63 * be PURPLE_PMP_LIFETIME. 63 * be PURPLE_PMP_LIFETIME.
64 * 64 *
65 * @returns TRUE if successful; FALSE if unsuccessful 65 * Returns:s TRUE if successful; FALSE if unsuccessful
66 */ 66 */
67 gboolean purple_pmp_create_map(PurplePmpType type, unsigned short privateport, 67 gboolean purple_pmp_create_map(PurplePmpType type, unsigned short privateport,
68 unsigned short publicport, int lifetime); 68 unsigned short publicport, int lifetime);
69 69
70 /** 70 /**
71 * Remove the NAT-PMP mapping for a specified type on a specified port 71 * Remove the NAT-PMP mapping for a specified type on a specified port
72 * 72 *
73 * @param type The PurplePmpType 73 * @type: The PurplePmpType
74 * @param privateport The private port on which the mapping was previously made 74 * @privateport: The private port on which the mapping was previously made
75 * 75 *
76 * @returns TRUE if successful; FALSE if unsuccessful 76 * Returns:s TRUE if successful; FALSE if unsuccessful
77 */ 77 */
78 gboolean purple_pmp_destroy_map(PurplePmpType type, unsigned short privateport); 78 gboolean purple_pmp_destroy_map(PurplePmpType type, unsigned short privateport);
79 79
80 G_END_DECLS 80 G_END_DECLS
81 81

mercurial