From ed35737b2cc95607125de03d8fa082e66e061408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 1 Apr 2010 07:20:44 +0000 Subject: convenience function for outputting the number of connections svn path=/trunk/externals/iem/iemnet/; revision=13328 --- iemnet.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'iemnet.h') diff --git a/iemnet.h b/iemnet.h index e26fe46..7a97460 100644 --- a/iemnet.h +++ b/iemnet.h @@ -223,6 +223,18 @@ int iemnet__receiver_getsize(t_iemnet_receiver*); */ void iemnet__addrout(t_outlet*status_outlet, t_outlet*address_outlet, long address, unsigned short port); +/** + * output the number of connections + * the given number of connections is first output through the status_outlet as a "connections" message + * and then as a single number through the numconn_outlet + * + * \param status_outlet outlet for general status messages + * \param address_outlet outlet for numconnections only + * \param numconnections the number of connections + */ +void iemnet__numconnout(t_outlet*status_outlet, t_outlet*numconn_outlet, int numconnections); + + /** * output a list as a stream (serialize) * -- cgit v1.2.1