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

相关文章:

  • 2021-07-28
  • 2022-02-02
  • 2021-04-14
  • 2021-08-27
  • 2021-11-12
  • 2021-12-15
  • 2022-12-23
  • 2022-01-06
猜你喜欢
  • 2022-02-09
  • 2022-01-06
  • 2021-09-24
  • 2021-11-05
  • 2021-11-30
  • 2022-01-01
  • 2021-11-19
相关资源
相似解决方案