1 /*
2 * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2006 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
13 * $COPYRIGHT$
14 *
15 * Additional copyrights may follow
16 *
17 * $HEADER$
18 */
19
20 #ifndef PMIX_PTL_USOCK_H
21 #define PMIX_PTL_USOCK_H
22
23 #include "src/mca/ptl/ptl.h"
24
25 BEGIN_C_DECLS
26
27 typedef struct {
28 pmix_ptl_base_component_t super;
29 char *tmpdir;
30 struct sockaddr_storage connection;
31 char *filename;
32 } pmix_ptl_usock_component_t;
33
34 /* header for messages */
35 typedef struct {
36 int pindex;
37 uint32_t tag;
38 size_t nbytes;
39 } pmix_usock_hdr_t;
40
41 extern pmix_ptl_usock_component_t mca_ptl_usock_component;
42
43 extern pmix_ptl_module_t pmix_ptl_usock_module;
44
45 void pmix_usock_send_handler(int sd, short args, void *cbdata);
46
47 void pmix_usock_recv_handler(int sd, short args, void *cbdata);
48
49 END_C_DECLS
50
51 #endif /* PMIX_PTL_USOCK_H */