From 9df6f84e85726943ad1c17b99045bf58e1b3296f Mon Sep 17 00:00:00 2001 From: tuexen Date: Sat, 28 Apr 2012 16:43:56 +0000 Subject: Clean teardown of the stack (wait for threads to terminate). --- usrsctplib/user_recv_thread.h | 44 +++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) (limited to 'usrsctplib/user_recv_thread.h') diff --git a/usrsctplib/user_recv_thread.h b/usrsctplib/user_recv_thread.h index e2021d2f..ee0a5978 100755 --- a/usrsctplib/user_recv_thread.h +++ b/usrsctplib/user_recv_thread.h @@ -1,20 +1,32 @@ -/* __Userspace__ user_recv_thread.h header file for creating recv thread */ - - - -/* raw socket to be used for both incoming and outgoing packets */ -extern int userspace_rawsctp; /* needs to be declared = -1 */ -extern int userspace_rawsctp6; - -/* udp socket to be used for both incoming and outgoing packets */ -extern int userspace_udpsctp; /* needs to be declared = -1 */ -extern int userspace_udpsctp6; - -/* routing socket used for route lookups */ -extern int userspace_route; +/*- + * Copyright (c) 2012 Michael Tuexen + * Copyright (c) 2012 Irene Ruengeler + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * [id for your version control system, if any] + */ void recv_thread_init(void); void recv_thread_destroy(void); -#define RECV_THREAD_INIT recv_thread_init - -- cgit v1.2.3