Data Structures | |
struct | sENMX_Server |
information of EIBnet/IP servers responding to multicast search request More... | |
Functions | |
void | enmx_close (ENMX_HANDLE conn) |
close connection with eibnetmux socket server | |
ENMX_HANDLE | enmx_open (char *hostname, char *clientid) |
establish connection with eibnetmux socket server | |
ENMX_HANDLE | enmx_pth_open (char *hostname, char *clientid) |
connection with eibnetmux socket server (PTH version) | |
char * | enmx_gethost (ENMX_HANDLE handle) |
retrieve hostname of connected eibnetmux server | |
int | enmx_init (void) |
initialise eibnetmux client library | |
sENMX_Server * | enmx_getservers (int seconds) |
return list of eibnetmux servers | |
sENMX_Server * | enmx_pth_getservers (int seconds) |
return list of eibnetmux servers (PTH mode) | |
void | enmx_releaseservers (sENMX_Server *list) |
release memory allocated for list of eibnetmux servers |
This API supports the following features:
void enmx_close | ( | ENMX_HANDLE | conn | ) |
close connection with eibnetmux socket server
conn | connection handle as returned by enmx_open() |
char* enmx_gethost | ( | ENMX_HANDLE | handle | ) |
retrieve hostname of connected eibnetmux server
handle | connection handle as returned by enmx_open() |
sENMX_Server* enmx_getservers | ( | int | seconds | ) |
return list of eibnetmux servers
The client sends an EIBnet/IP search request to the standard EIBnet/IP multicast IP address. Active servers reply by sending their server information.
The function constructs a linked list of all replying servers with all eibnetmux servers at the head of the list.
An eibnetmux server is only found if its EIBnet/IP server is active (-s given on command line)
seconds | number of seconds to wait for servers to answer |
int enmx_init | ( | void | ) |
initialise eibnetmux client library
Currently, this function does nothing but return the current API version number. Calling it first thing in a client application is enforced, however, as future enhancements may require initialisation before any other library function can be used.
ENMX_HANDLE enmx_open | ( | char * | hostname, | |
char * | clientid | |||
) |
establish connection with eibnetmux socket server
hostname | name or ip address and port of eibnetmux server, format hostname:port | |
clientid | user selectable identification of client |
sENMX_Server* enmx_pth_getservers | ( | int | seconds | ) |
return list of eibnetmux servers (PTH mode)
The client sends an EIBnet/IP search request to the standard EIBnet/IP multicast IP address. Active servers reply by sending their server information.
The function constructs a linked list of all replying servers with all eibnetmux servers at the head of the list.
An eibnetmux server is only found if its EIBnet/IP server is active (-s given on command line)
This function uses PTH calls to cooperate in a non-preemptive thread environment.
seconds | number of seconds to wait for servers to answer |
ENMX_HANDLE enmx_pth_open | ( | char * | hostname, | |
char * | clientid | |||
) |
connection with eibnetmux socket server (PTH version)
hostname | name or ip address and port of eibnetmux server, format hostname:port | |
clientid | user selectable identification of client |
void enmx_releaseservers | ( | sENMX_Server * | list | ) |
release memory allocated for list of eibnetmux servers
list | list of servers |