---
name: "eXosip2_network"
section: "3"
platform: "linux"
package: "libexosip2-dev"
version: "4.1.0-2.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/eXosip2_network"
---

# eXosip2\_network(3)

eXosip2 network API

## NAME

eXosip2\_network - eXosip2 network 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

## Author

Generated automatically by Doxygen for libeXosip2 from the source code.
