~ubuntu-branches/debian/lenny/libtorrent/lenny

« back to all changes in this revision

Viewing changes to rak/socket_address.h

  • Committer: Bazaar Package Importer
  • Author(s): James Vega
  • Date: 2008-04-15 21:38:37 UTC
  • mfrom: (4.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080415213837-znilhi7a44yec99u
Tags: 0.11.9-1.1
* Non-maintainer upload.
* Fix FTBFS with gcc-4.3.  (Closes: #420920)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// rak - Rakshasa's toolbox
2
 
// Copyright (C) 2005-2006, Jari Sundell
 
2
// Copyright (C) 2005-2007, Jari Sundell
3
3
//
4
4
// This program is free software; you can redistribute it and/or modify
5
5
// it under the terms of the GNU General Public License as published by
62
62
 
63
63
class socket_address {
64
64
public:
65
 
  static const sa_family_t af_local  = AF_LOCAL;
66
 
  static const sa_family_t af_unix   = AF_UNIX;
67
 
  //  static const sa_family_t af_file   = AF_FILE;
68
65
  static const sa_family_t af_inet   = AF_INET;
 
66
  static const int         pf_inet   = PF_INET;
69
67
  static const sa_family_t af_inet6  = AF_INET6;
 
68
  static const int         pf_inet6  = PF_INET6;
70
69
  static const sa_family_t af_unspec = AF_UNSPEC;
 
70
  static const int         pf_unspec = PF_UNSPEC;
 
71
 
 
72
#ifdef AF_LOCAL
 
73
  static const sa_family_t af_local  = AF_LOCAL;
 
74
  static const int         pf_local  = PF_LOCAL;
 
75
#else
 
76
  static const sa_family_t af_local  = AF_UNIX;
 
77
  static const int         pf_local  = PF_UNIX;
 
78
#endif
71
79
 
72
80
  bool                is_valid() const;
73
81
  bool                is_bindable() const;