BALTECH Docs |
C API for BALTECH SDK
|
This is the adapter for network sockets to access to TCP/IP devices. More...
#include "protocol.h"
Go to the source code of this file.
Macros | |
#define | BRP_DEFAULT_TCP_PORT 2939 |
If a TCP/IP connection is created without specifying a portnr, this default value is used as portnr. More... | |
#define | BRP_DEFAULT_TCPIP_ROUNDTRIP_TIMEOUT 1500 |
This is the default time that will be assumed as worst case for a single roundtrip. More... | |
Functions | |
BRP_LIB brp_protocol | brp_create_tcpip (char *ipaddr) |
Creates a TCP/IP protocol from an IP address. More... | |
BRP_LIB brp_protocol | brp_create_tcpip_by_socket (int socket) |
Creates a TCP/IP protocol from an OS-level socket that was created by the user of the BRP library. More... | |
BRP_LIB char * | brp_get_tcpip_ipaddr (brp_protocol protocol) |
Retrieves the ipaddr set in brp_create_tcpip(). More... | |
BRP_LIB brp_errcode | brp_set_tcpip_roundtrip_timeout (brp_protocol protocol, brp_time timeout) |
If the value of BRP_DEFAULT_TCPIP_ROUNDTRIP_TIMEOUT is not appropriate it can be finetuned for specific protocol instances via this function. More... | |
BRP_LIB brp_time | brp_get_tcpip_roundtrip_timeout (brp_protocol protocol) |
Retrieves the value of the roundtrip timeout set by the last brp_set_tcpip_roundtrip_timeout(). More... | |
This is the adapter for network sockets to access to TCP/IP devices.
Definition in file tcpip_protocol.h.