Rudiments
serviceentry.h
1// Copyright (c) 1999-2018 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
11class RUDIMENTS_DLLSPEC serviceentry : public object {
12 public:
13
16
19
23 bool open(const char *servicename,
24 const char *protocol);
25
30 bool open(int32_t port, const char *protocol);
31
33 const char *getName();
34
38
41 const char *getProtocol();
42
45 const char * const * getAliasList();
46
53 static int32_t getPort(const char *servicename,
54 const char *protocol);
55
67 static char *getName(int32_t port,
68 const char *protocol);
69
72 static bool getNeedsMutex();
73
77 static void setMutex(threadmutex *mtx);
78
79 #include <rudiments/private/serviceentry.h>
80};
81
82#endif
Definition avltree.h:11
Definition object.h:10
Definition serviceentry.h:11
static void setMutex(threadmutex *mtx)
static int32_t getPort(const char *servicename, const char *protocol)
static char * getName(int32_t port, const char *protocol)
static bool getNeedsMutex()
bool open(const char *servicename, const char *protocol)
const char * getName()
const char *const * getAliasList()
bool open(int32_t port, const char *protocol)
int32_t getPort()
const char * getProtocol()
Definition threadmutex.h:11