Ignore:
Timestamp:
Jul 23, 2018 7:15:08 AM (2 years ago)
Author:
riza
Message:

Close #2070: Print IPv6 addresses with brackets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/sock.h

    r5719 r5833  
    14881488#endif 
    14891489 
     1490/***************************************************************************** 
     1491 * 
     1492 * Utilities. 
     1493 * 
     1494 ***************************************************************************** 
     1495 */ 
     1496 
     1497/** 
     1498 * Print socket address string. This method will enclose the address string  
     1499 * with square bracket if it's IPv6 address. 
     1500 * 
     1501 * @param host_str  The host address string. 
     1502 * @param port      The port address. 
     1503 * @param buf       Text buffer. 
     1504 * @param size      Size of buffer. 
     1505 * @param flags     Bitmask combination of these value: 
     1506 *                  - 1: port number is included.  
     1507 * 
     1508 * @return      The address string. 
     1509 */ 
     1510PJ_DECL(char *) pj_addr_str_print( const pj_str_t *host_str, int port,  
     1511                                   char *buf, int size, unsigned flag); 
     1512 
     1513 
    14901514/** 
    14911515 * @} 
Note: See TracChangeset for help on using the changeset viewer.