You are here

DlnConnect() Function

The DlnConnect() function establishes the connection to the DLN server.

Syntax
C/C++
DLN_RESULT DlnConnect(
   const char* host,
   uint16_t port
);
Parameters
host

A server to which the function establishes connection. This value can be a URL (e.g., example.com), or an IP address (e.g., 127.0.0.1). To connect to a server launched on the same computer, you can use the predefined "localhost" value as a host name.

port

A port number of the DLN server. If you use DLN-series device on the same computer use "9656" port value or the predefined DLN_DEFAULT_SERVER_PORT constant.

Return Value
DLN_RES_SUCCESS (0x00)

The function successfully established connection to the DLN server.

Remarks

The DlnConnect() function is the dln_generic.h file.

Elvira Brassard...
Elvira Brassard Elvira's picture
Offline
Last seen: 5 months 1 week ago
Joined: 07/05/2018 - 14:32
DlnConnect() Function | USB-I2C/SPI/GPIO Interface Adapters

My spouse and I stumbled over here from a different page and thought I
may as well check things out. I like what I see so now i'm
following you. Look forward to finding out about
your web page yet again.

Feel free to visit my blog post ... <a href="https://fightingvision.wixsite.com/mysite">watch this video</a>

User login