summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2014-04-04 21:34:41 +0200
committerMurray Cumming <murrayc@murrayc.com>2014-04-04 22:00:12 +0200
commitcaf17411dbd60fa8ea8f7044275bb8d54cd2be1c (patch)
tree4f09fc812130e454c2ed7e5b61151232e3a180ac
parent2859d694d27b1b577d8d79690234344d67a47859 (diff)
downloadglibmm-caf17411dbd60fa8ea8f7044275bb8d54cd2be1c.tar.gz
Socket: Add get/set_option().
-rw-r--r--gio/src/socket.hg3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/src/socket.hg b/gio/src/socket.hg
index bcaa9d3f..f0bce7bf 100644
--- a/gio/src/socket.hg
+++ b/gio/src/socket.hg
@@ -268,6 +268,9 @@ public:
_WRAP_METHOD_DOCS_ONLY(g_socket_send_with_blocking)
gssize send_with_blocking(gchar* buffer, gsize size, bool blocking, const Glib::RefPtr<Cancellable>& cancellable = Glib::RefPtr<Cancellable>());
+ _WRAP_METHOD(bool get_option(int level, int optname, int& value) const, g_socket_get_option, errthrow)
+ _WRAP_METHOD(bool set_option(int level, int optname, int value), g_socket_set_option, errthrow)
+
_WRAP_METHOD(guint get_ttl() const, g_socket_get_ttl)
_WRAP_METHOD(void set_ttl(guint ttl), g_socket_set_ttl)