HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
usocutils.h
Go to the documentation of this file.
1 #ifndef HIPC_USOCUTILS_H
2 #define HIPC_USOCUTILS_H
3 
4 #include <hipc/msgd.h>
5 #include <hipc/scfg.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11  extern enum HIPC_errno
12  hipcUsocWriteMsgd(struct HIPC_usoc *const so_p,
13  hipc_msgd const *const md_p);
14  extern enum HIPC_errno
15  hipcUsocAccept(struct HIPC_usoc *const so_p,
16  const struct HIPC_scfg * *const cfg_pp,
17  const struct HIPC_scfg *const *const cfg_ary,
18  const unsigned int n_cfg,
19  unsigned char *const buf, size_t buf_size);
20  extern enum HIPC_errno
21  hipcUsocAcceptSimple(struct HIPC_usoc *const so_p,
22  const struct HIPC_scfg *const cfg_p);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 #endif
enum HIPC_errno hipcUsocAcceptSimple(struct HIPC_usoc *const so_p, const struct HIPC_scfg *const cfg_p)
Accepts a HIPC session of cfg_p.
Definition: usocutils.c:141
enum HIPC_errno hipcUsocWriteMsgd(struct HIPC_usoc *const so_p, hipc_msgd const *const md_p)
Writes md_p to so_p.
Definition: usocutils.c:14
HIPC_errno
Definition: hipc.h:4
Definition: usoc.h:4
enum HIPC_errno hipcUsocAccept(struct HIPC_usoc *const so_p, const struct HIPC_scfg **const cfg_pp, const struct HIPC_scfg *const *const cfg_ary, const unsigned int n_cfg, unsigned char *const buf, size_t buf_size)
Accepts a HIPC session if cfg_ary includes a configuration of coming HELLO message.
Definition: usocutils.c:71
Definition: scfg.h:9