Skip to content

Commit

Permalink
Export the API ldms_xprt_connected()
Browse files Browse the repository at this point in the history
  • Loading branch information
nichamon committed Aug 31, 2023
1 parent a4841d9 commit fcb20e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ldms/src/core/ldms.h
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,15 @@ extern int ldms_xprt_listen(ldms_t x, struct sockaddr *sa, socklen_t sa_len,
extern int ldms_xprt_listen_by_name(ldms_t x, const char *host, const char *port,
ldms_event_cb_t cb, void *cb_arg);

/**
* \brief Check if an LDMS transport endpoint is connected.
*
* \param x The transport handle
*
* \retval 0 if the transport endpoint is connected. Otherwise, 1 is returned.
*/
extern int ldms_xprt_connected(ldms_t x);

/**
* \brief Get local and remote sockaddr from the xprt.
*
Expand Down

0 comments on commit fcb20e0

Please sign in to comment.