# DLCP Struct Reference

`#include <libdali.h>`

Collaboration diagram for DLCP:

[legend]

## Data Fields
char | addr [100]
char | clientid [200]
int | keepalive
int | iotimeout
int | link
float | serverproto
int32_t | maxpktsize
int8_t | writeperm
int64_t | pktid
dltime_t | pkttime
int8_t | keepalive_trig
dltime_t | keepalive_time
int8_t | terminate
int8_t | streaming
DLLog * | log

## Detailed Description

DataLink connection parameters

## Field Documentation

char DLCP::addr[100]

The host:port of DataLink server

char DLCP::clientid[200]

Client program ID as "progname:username:pid:arch", see dlp_genclientid()

int DLCP::keepalive

Interval to send keepalive/heartbeat (seconds)

int DLCP::iotimeout

Timeout for network I/O operations (seconds)

int DLCP::link

The network socket descriptor, maintained internally

float DLCP::serverproto

Server version of the DataLink protocol, maintained internally

int32_t DLCP::maxpktsize

Maximum packet size for server, maintained internally

int8_t DLCP::writeperm

Write permission status from server, maintained internally

int64_t DLCP::pktid

Packet ID of last packet received, maintained internally

dltime_t DLCP::pkttime

Packet time of last packet received, maintained internally

int8_t DLCP::keepalive_trig

Send keepalive trigger, maintained internally

dltime_t DLCP::keepalive_time

Keepalive time stamp, maintained internally

int8_t DLCP::terminate

Boolean flag to control connection termination, maintained internally

int8_t DLCP::streaming

Boolean flag to indicate streaming status, maintained internally

DLLog* DLCP::log

Logging parameters, maintained internally

The documentation for this struct was generated from the following file:

- libdali.h