• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
  • network
kreverseresolver.h
1 /*
2  * Copyright (C) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
3  *
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining
6  * a copy of this software and associated documentation files (the
7  * "Software"), to deal in the Software without restriction, including
8  * without limitation the rights to use, copy, modify, merge, publish,
9  * distribute, sublicense, and/or sell copies of the Software, and to
10  * permit persons to whom the Software is furnished to do so, subject to
11  * the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included
14  * in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef KREVERSERESOLVER_H
26 #define KREVERSERESOLVER_H
27 
29 // Needed includes
30 #include <tqobject.h>
31 #include <tqstring.h>
32 
33 #include "tdesocketaddress.h"
34 
35 namespace KNetwork {
36 
37 class KReverseResolverPrivate;
50 class TDECORE_EXPORT KReverseResolver: public TQObject
51 {
52  Q_OBJECT
53 
54 
55 public:
75  enum Flags
76  {
77  NumericHost = 0x01,
78  NumericService = 0x02,
79  NodeNameOnly = 0x04,
80  Datagram = 0x08,
81  NumericScope = 0x10,
82  ResolutionRequired = 0x20
83  };
84 
91  KReverseResolver(const TDESocketAddress& addr, int flags = 0,
92  TQObject * = 0L, const char * = 0L);
93 
97  virtual ~KReverseResolver();
98 
102  bool isRunning() const;
103 
108  bool success() const;
109 
114  bool failure() const;
115 
120  TQString node() const;
121 
126  TQString service() const;
127 
131  const TDESocketAddress& address() const;
132 
137  bool start();
138 
142  virtual bool event(TQEvent* );
143 
144 signals:
150  void finished(const KReverseResolver& obj);
151 
152 public:
168  static bool resolve(const TDESocketAddress& addr, TQString& node,
169  TQString& serv, int flags = 0);
170 
187  static bool resolve(const struct sockaddr* sa, TQ_UINT16 salen,
188  TQString& node, TQString& serv, int flags = 0);
189 
190 private:
191  KReverseResolverPrivate* d;
192 };
193 
194 } // namespace KNetwork
195 
196 #endif
KNetwork::TDESocketAddress
A generic socket address.
Definition: tdesocketaddress.h:423
KNetwork
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36
KNetwork::KReverseResolver
Run a reverse-resolution on a socket address.
Definition: kreverseresolver.h:50
KNetwork::KReverseResolver::Flags
Flags
Flags for the reverse resolution.
Definition: kreverseresolver.h:75

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.