[glibmm] Socket: Add get/set_option().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Socket: Add get/set_option().
- Date: Fri, 4 Apr 2014 20:00:37 +0000 (UTC)
commit caf17411dbd60fa8ea8f7044275bb8d54cd2be1c
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 4 21:34:41 2014 +0200
Socket: Add get/set_option().
gio/src/socket.hg | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/socket.hg b/gio/src/socket.hg
index bcaa9d3..f0bce7b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]