Rudiments

- Main Page
- Classes

serviceentry.h
1 // Copyright (c) 2003 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_SERVICEENTRY_H
5 #define RUDIMENTS_SERVICEENTRY_H
6
7 #include <rudiments/private/serviceentryincludes.h>
8
9 class serviceentryprivate;
10
13 class RUDIMENTS_DLLSPEC serviceentry {
14 public:
15
17 serviceentry();
18
21 serviceentry(const serviceentry &s);
22
25 serviceentry &operator=(const serviceentry &s);
26
28 ~serviceentry();
29
33 bool initialize(const char *servicename,
34 const char *protocol);
35
40 bool initialize(int32_t port, const char *protocol);
41
43 const char *getName() const;
44
47 int32_t getPort() const;
48
51 const char *getProtocol() const;
52
55 const char * const * getAliasList() const;
56
63 static int32_t getPort(const char *servicename,
64 const char *protocol);
65
77 static char *getName(int32_t port,
78 const char *protocol);
79
82 static bool needsMutex();
83
87 static void setMutex(threadmutex *mtx);
88
89 #include <rudiments/private/serviceentry.h>
90 };
91
92 #endif
threadmutex
Definition: threadmutex.h:13
serviceentry
Definition: serviceentry.h:13