码迷,mamicode.com
首页 > Windows程序 > 详细

libeXosip2(2-2) -- eXosip2 network API

时间:2014-08-29 19:48:38      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:des   http   os   io   ar   cti   html   sp   on   

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

标签:des   http   os   io   ar   cti   html   sp   on   

原文地址:http://www.cnblogs.com/elisha-blogs/p/3945534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!