Files: Rearranged backend .h files: moved client_entry to clixon_backend_client.h
This commit is contained in:
parent
d6c523d27a
commit
5f2978d06c
14 changed files with 46 additions and 39 deletions
|
|
@ -37,34 +37,6 @@
|
|||
#ifndef _BACKEND_CLIENT_H_
|
||||
#define _BACKEND_CLIENT_H_
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
/*
|
||||
* Backend client entry.
|
||||
* Keep state about every connected client.
|
||||
* References from RFC 6022, ietf-netconf-monitoring.yang sessions container
|
||||
*/
|
||||
struct client_entry{
|
||||
struct client_entry *ce_next; /* The clients linked list */
|
||||
struct sockaddr ce_addr; /* The clients (UNIX domain) address */
|
||||
int ce_s; /* stream socket to client */
|
||||
int ce_nr; /* Client number (for dbg/tracing) */
|
||||
uint32_t ce_id; /* Session id, accessor functions: clicon_session_id_get/set */
|
||||
char *ce_username;/* Translated from peer user cred */
|
||||
clicon_handle ce_handle; /* clicon config handle (all clients have same?) */
|
||||
char *ce_transport; /* Identifies the transport for each session.
|
||||
Clixon-lib.yang extends these values by prefixing with
|
||||
"cl:", where cl is ensured to be declared ie by
|
||||
netconf-monitoring state */
|
||||
char *ce_source_host; /* Host identifier of the NETCONF client */
|
||||
struct timeval ce_time; /* Time at the server at which the session was established. */
|
||||
uint32_t ce_in_rpcs ; /* Number of correct <rpc> messages received. */
|
||||
uint32_t ce_in_bad_rpcs; /* Not correct <rpc> messages */
|
||||
uint32_t ce_out_rpc_errors; /* <rpc-error> messages*/
|
||||
uint32_t ce_out_notifications; /* Outgoing notifications */
|
||||
};
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue