summaryrefslogtreecommitdiff
path: root/ace/SOCK.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SOCK.i')
-rw-r--r--ace/SOCK.i28
1 files changed, 28 insertions, 0 deletions
diff --git a/ace/SOCK.i b/ace/SOCK.i
new file mode 100644
index 00000000000..bbf4794a8af
--- /dev/null
+++ b/ace/SOCK.i
@@ -0,0 +1,28 @@
+/* -*- C++ -*- */
+// $Id$
+
+// SOCK.i
+
+inline int
+ACE_SOCK::set_option (int level,
+ int option,
+ void *optval,
+ int optlen) const
+{
+ ACE_TRACE ("ACE_SOCK::set_option");
+ return ACE_OS::setsockopt (this->get_handle (), level,
+ option, (char *) optval, optlen);
+}
+
+// Provides access to the ACE_OS::getsockopt system call.
+
+inline int
+ACE_SOCK::get_option (int level,
+ int option,
+ void *optval,
+ int *optlen) const
+{
+ ACE_TRACE ("ACE_SOCK::get_option");
+ return ACE_OS::getsockopt (this->get_handle (), level,
+ option, (char *) optval, optlen);
+}