RTRlib
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
TCP transport socket

Data Structures

struct  tr_tcp_config
 

Functions

int tr_tcp_init (const struct tr_tcp_config *config, struct tr_socket *socket)
 

Detailed Description

Function Documentation

int tr_tcp_init ( const struct tr_tcp_config config,
struct tr_socket socket 
)

Initializes the tr_socket struct for a TCP connection.

Parameters
[in]configTCP configuration for the connection.
[out]socketInitialized transport socket.
Returns
TR_SUCCESS On success.
TR_ERROR On error.
Examples:
rtr_mgr.c.