RTRlib
Loading...
Searching...
No Matches
TCP transport socket

An implementation of the TCP protocol for the RTR transport. More...

Data Structures

struct  tr_tcp_config
 A tr_tcp_config struct holds configuration for a TCP connection. More...
 

Functions

int tr_tcp_init (const struct tr_tcp_config *config, struct tr_socket *socket)
 Initializes the tr_socket struct for a TCP connection.
 

Detailed Description

An implementation of the TCP protocol for the RTR transport.

See transport interface for a list of supported operations.

Function Documentation

◆ tr_tcp_init()

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

#include <rtrlib/transport/tcp/tcp_transport.h>

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.