diff include/freeDiameter/libfdcore.h @ 1186:56c36d1007b4

Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 07 Jun 2013 18:48:34 +0800
parents 773498f59520
children 50bf33dc8fe0
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h	Thu Jun 06 19:06:00 2013 +0800
+++ b/include/freeDiameter/libfdcore.h	Fri Jun 07 18:48:34 2013 +0800
@@ -398,6 +398,23 @@
 int fd_peer_get_state(struct peer_hdr *peer);
 
 /* 
+ * FUNCTION:	fd_peer_cnx_proto_info
+ *
+ * PARAMETERS:
+ *  peer	: The peer which information to be read
+ *  buf		: Where to store the protocol information
+ *  len		: available space in bug
+ *
+ * DESCRIPTION: 
+ *   Creates a string describing the current connection to this peer, e.g.: "TCP,TLS,soc#3".
+ *
+ * RETURN VALUE:
+ *  0   : buffer was written
+ * >=0	: error code.
+ */
+int fd_peer_cnx_proto_info(struct peer_hdr *peer, char * buf, size_t len);
+
+/* 
  * FUNCTION:	fd_peer_get_load_pending
  *
  * PARAMETERS:
"Welcome to our mercurial repository"