aboutsummaryrefslogtreecommitdiff
path: root/usrsctplib/user_recv_thread.h
diff options
context:
space:
mode:
authortuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-04-28 16:43:56 +0000
committertuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-04-28 16:43:56 +0000
commit9df6f84e85726943ad1c17b99045bf58e1b3296f (patch)
treea86d7a73671041169ed8ab4af8cd607590a664cb /usrsctplib/user_recv_thread.h
parent852c79699d3d814b641a8dd35be50ce50a9f576c (diff)
downloadusrsctp-9df6f84e85726943ad1c17b99045bf58e1b3296f.tar.gz
Clean teardown of the stack (wait for threads to terminate).
Diffstat (limited to 'usrsctplib/user_recv_thread.h')
-rwxr-xr-xusrsctplib/user_recv_thread.h44
1 files changed, 28 insertions, 16 deletions
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
-