From c5e0079ae1323ad4c35d28f83ce732bb3820c46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 31 Aug 2015 22:11:51 +0000 Subject: un-threaded receive svn path=/trunk/externals/iem/iemnet/; revision=17543 --- iemnet_data.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'iemnet_data.h') diff --git a/iemnet_data.h b/iemnet_data.h index f9a043c..80a8eed 100644 --- a/iemnet_data.h +++ b/iemnet_data.h @@ -2,7 +2,7 @@ * iemnet * networking for Pd * - * (c) 2010 IOhannes m zmölnig + * (c) 2010 IOhannes m zmölnig * Institute of Electronic Music and Acoustics (IEM) * University of Music and Dramatic Arts (KUG), Graz, Austria * @@ -23,9 +23,8 @@ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ -/* along with this program; if not, write to the Free Software */ -/* Foundation, Inc., */ -/* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +/* along with this program; if not, see */ +/* http://www.gnu.org/licenses/ */ /* */ /* ---------------------------------------------------------------------------- */ @@ -67,6 +66,7 @@ typedef struct _iemnet_chunk { long addr; unsigned short port; + short family; // AF_INET, AF_INET6 } t_iemnet_chunk; /** @@ -103,7 +103,8 @@ t_iemnet_chunk*iemnet__chunk_create_data(int size, unsigned char*data); * \param addr originating address (can be NULL) * \return a new chunk that holds a copy of data */ -t_iemnet_chunk*iemnet__chunk_create_dataaddr(int size, unsigned char*data, struct sockaddr_in*addr); +t_iemnet_chunk*iemnet__chunk_create_dataaddr(int size, unsigned char*data, + struct sockaddr_in*addr); /** * initialize a "chunk" (allocate memory,...) with given data * receiver address will be set to 0 @@ -130,7 +131,8 @@ t_iemnet_chunk*iemnet__chunk_create_chunk(t_iemnet_chunk*source); * \param dest the destination list * \return the destination list if all went well, else NULL */ -t_iemnet_floatlist*iemnet__chunk2list(t_iemnet_chunk*c, t_iemnet_floatlist*dest); +t_iemnet_floatlist*iemnet__chunk2list(t_iemnet_chunk*c, + t_iemnet_floatlist*dest); /** -- cgit v1.2.1