libsmoco
Low-level interface library for Segment Motion Controller system
|
These functions perform tasks related to communications with SMOCO hardware, via message queue sockets to a running instance of the smocand daemon. More...
Functions | |
SMOCO_STATUS | smoco_set_conn_spec (SMOCO_CTX ctx, smoco_can_connect_t *p_connspec) |
Specify customized connection details for libsmoco session. More... | |
SMOCO_STATUS | smoco_connect (SMOCO_CTX ctx) |
Launch a listening thread to receive communication from SMOCO, via smocand daemon. More... | |
SMOCO_STATUS | smoco_disconnect (SMOCO_CTX ctx) |
Disconnect sockets from smocand daemon. More... | |
These functions perform tasks related to communications with SMOCO hardware, via message queue sockets to a running instance of the smocand daemon.
SMOCO_STATUS smoco_connect | ( | SMOCO_CTX | ctx | ) |
Launch a listening thread to receive communication from SMOCO, via smocand daemon.
ctx | Context handle for this session. |
SMOCO_STATUS smoco_disconnect | ( | SMOCO_CTX | ctx | ) |
Disconnect sockets from smocand daemon.
ctx | Context handle for this session. |
SMOCO_STATUS smoco_set_conn_spec | ( | SMOCO_CTX | ctx, |
smoco_can_connect_t * | p_connspec | ||
) |
Specify customized connection details for libsmoco session.
Allows an application to set an alternative hostname and base port number, instead of the defaults in smocand_protocol.h.
ctx | Context handle for this session |
p_connspec | Pointer to structure containing desired connection details. If NULL, settings are restored to defaults, localhost at base port defined in smocand_protocol.h |