#include "cs_defs.h"
#include "cs_time_step.h"
Go to the source code of this file.
◆ cs_control_comm_type_t
Enumerator |
---|
CS_CONTROL_COMM_TYPE_SOCKET | |
CS_CONTROL_COMM_TYPE_NULL | |
◆ cs_control_check_file()
void cs_control_check_file |
( |
void |
| ) |
|
Check the presence of a control file and deal with the interactive control.
◆ cs_control_comm_finalize()
void cs_control_comm_finalize |
( |
void |
| ) |
|
Finalize a connection to a client.
◆ cs_control_comm_initialize()
Establish a connection to a client.
- Parameters
-
[in] | port_name | name of server port (host:port for IP sockets) |
[in] | key | key for authentification |
[in] | type | communication type |
◆ cs_control_comm_read()
void cs_control_comm_read |
( |
void * |
rec, |
|
|
size_t |
size, |
|
|
size_t |
count |
|
) |
| |
Read a record from a client.
- Parameters
-
[out] | rec | pointer to data to read |
[in] | size | size of each data element, in bytes |
[in] | count | number of data elements |
◆ cs_control_comm_read_to_queue()
size_t cs_control_comm_read_to_queue |
( |
void |
| ) |
|
Read data from a client into a command queue.
The function updates a pointer (view) to the data.
- Returns
- number of useable elements read (i.e. elements before the last separator)
◆ cs_control_comm_write()
void cs_control_comm_write |
( |
const void * |
rec, |
|
|
size_t |
size, |
|
|
size_t |
count |
|
) |
| |
Write a record to a client.
- Parameters
-
[in] | rec | pointer to data to write |
[in] | size | size of each data element, in bytes |
[in] | count | number of data elements |
◆ cs_control_finalize()
void cs_control_finalize |
( |
void |
| ) |
|
Finalize controller structures.