LIBEXOSIP2 (2-2)--EXOSIP2 network API

Source: Internet
Author: User

EXOSIP2 Network API

General purpose API.

Functions

Int
Exosip_transport_set (osip_message_t *msg, const char *transport)

Int
Exosip_guess_localip (struct exosip_t *excontext, int family, char *address, int size)

Detailed Description Function Documentation

int Exosip_transport_set
(
osip_message_t *
msg,

const char *
Transport

)

Modify the transport protocol used to send SIP message.

Parameters

Msg
The SIP message to modify

Transport
Transport protocol to use ("UDP", "TCP" or "TLS")

int Exosip_guess_localip
(
struct exosip_t *
Excontext,

Int
Family,

char *
address,

Int
Size

)

Find the current Localip (interface with default route).

Parameters

Excontext
exosip_t instance.

Family
Af_inet or Af_inet6

Address
A string containing the local IP address.

Size
The size of the string

LIBEXOSIP2 (2-2)--EXOSIP2 network API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.