|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJLIB Reference
IP Interface and Routing Helper
[Input/Output]
Detailed Description
This module provides functions to query local host's IP interface and routing table.
Function Documentation
Enumerate the local IP interfaces currently active in the host.
- Parameters:
-
| af | Family of the address to be retrieved. Application may specify pj_AF_UNSPEC() to retrieve all addresses, or pj_AF_INET() or pj_AF_INET6() to retrieve interfaces with specific address family. |
| count | On input, specify the number of entries. On output, it will be filled with the actual number of entries. |
| ifs | Array of socket addresses, which address part will be filled with the interface address. The address family part will be initialized with the address family of the IP address. |
- Returns:
- PJ_SUCCESS on success, or the appropriate error code.
Enumerate the IP routing table for this host.
- Parameters:
-
| count | On input, specify the number of routes entries. On output, it will be filled with the actual number of route entries. |
| routes | Array of IP routing entries. |
- Returns:
- PJ_SUCCESS on success, or the appropriate error code.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|
|