~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty-proposed

« back to all changes in this revision

Viewing changes to gio/giomm/socket.cc

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2014-04-07 13:47:09 UTC
  • mfrom: (1.2.87)
  • Revision ID: package-import@ubuntu.com-20140407134709-wlrea1wrtuy9kpzw
Tags: 2.39.93-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Generated by gmmproc 2.39.3 -- DO NOT MODIFY!
 
1
// Generated by gmmproc 2.39.93 -- DO NOT MODIFY!
2
2
 
3
3
 
4
4
#include <glibmm.h>
519
519
  g_socket_set_timeout(gobj(), timeout);
520
520
}
521
521
 
 
522
bool Socket::get_option(int level, int optname, int& value) const
 
523
{
 
524
  GError* gerror = 0;
 
525
  bool retvalue = g_socket_get_option(const_cast<GSocket*>(gobj()), level, optname, &(value), &(gerror));
 
526
  if(gerror)
 
527
    ::Glib::Error::throw_exception(gerror);
 
528
  return retvalue;
 
529
}
 
530
 
 
531
bool Socket::set_option(int level, int optname, int value)
 
532
{
 
533
  GError* gerror = 0;
 
534
  bool retvalue = g_socket_set_option(gobj(), level, optname, value, &(gerror));
 
535
  if(gerror)
 
536
    ::Glib::Error::throw_exception(gerror);
 
537
  return retvalue;
 
538
}
 
539
 
522
540
guint Socket::get_ttl() const
523
541
{
524
542
  return g_socket_get_ttl(const_cast<GSocket*>(gobj()));