My Project
programmer's documentation
|
#include "cs_defs.h"
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_file.h"
#include "cs_log.h"
#include "cs_parall.h"
#include "cs_post.h"
#include "cs_resource.h"
#include "cs_restart.h"
#include "cs_time_plot.h"
#include "cs_timer.h"
#include "cs_control.h"
Functions | |
void | cs_control_finalize (void) |
Finalize controller structures. More... | |
void | cs_control_check_file (void) |
Check the presence of a control file and deal with the interactive control. More... | |
void | cs_control_comm_initialize (const char *port_name, const char *key, cs_control_comm_type_t type) |
Establish a connection to a client. More... | |
void | cs_control_comm_finalize (void) |
Finalize a connection to a client. More... | |
void | cs_control_comm_write (const void *rec, size_t size, size_t count) |
Write a record to a client. More... | |
void | cs_control_comm_read (void *rec, size_t size, size_t count) |
Read a record from a client. More... | |
size_t | cs_control_comm_read_to_queue (void) |
Read data from a client into a command queue. More... | |
void cs_control_check_file | ( | void | ) |
Check the presence of a control file and deal with the interactive control.
void cs_control_comm_finalize | ( | void | ) |
Finalize a connection to a client.
void cs_control_comm_initialize | ( | const char * | port_name, |
const char * | key, | ||
cs_control_comm_type_t | type | ||
) |
Establish a connection to a client.
[in] | port_name | name of server port (host:port for IP sockets) |
[in] | key | key for authentification |
[in] | type | communication type |
void cs_control_comm_read | ( | void * | rec, |
size_t | size, | ||
size_t | count | ||
) |
Read a record from a client.
[out] | rec | pointer to data to read |
[in] | size | size of each data element, in bytes |
[in] | count | number of data elements |
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.
void cs_control_comm_write | ( | const void * | rec, |
size_t | size, | ||
size_t | count | ||
) |
Write a record to a client.
[in] | rec | pointer to data to write |
[in] | size | size of each data element, in bytes |
[in] | count | number of data elements |
void cs_control_finalize | ( | void | ) |
Finalize controller structures.