Rudiments

- Main Page
- Classes

unixsocketclient.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_UNIXSOCKETCLIENT_H
5 #define RUDIMENTS_UNIXSOCKETCLIENT_H
6
7 #include <rudiments/private/unixsocketclientincludes.h>
8
9 class unixsocketclientprivate;
10
26 class RUDIMENTS_DLLSPEC unixsocketclient :
27 public socketclient, private unixsocketutil {
28 public:
29
31 unixsocketclient();
32
35 unixsocketclient(const unixsocketclient &u);
36
39 unixsocketclient &operator=(const unixsocketclient &u);
40
42 virtual ~unixsocketclient();
43
44 // This convenience method that calls the initialize() and
45 // connect() methods of this class.
46 //
47 // Returns RESULT_SUCCESS on success and RESULT_ERROR
48 // on failure.
49 int32_t connect(const char *filename,
50 int32_t timeoutsec,
51 int32_t timeoutusec,
52 uint32_t retrywait,
53 uint32_t tries);
54
55
56
61 void initialize(constnamevaluepairs *cd);
62
66 void initialize(const char *filename,
67 int32_t timeoutsec,
68 int32_t timeoutusec,
69 uint32_t retrywait,
70 uint32_t tries);
71
91 int32_t connect();
92
95 bool close();
96
97 #include <rudiments/private/unixsocketclient.h>
98 };
99
100 #endif
socketclient
Definition: socketclient.h:13
unixsocketclient
Definition: unixsocketclient.h:26
unixsocketutil
Definition: unixsocketutil.h:13
client::connect
virtual int32_t connect()
filedescriptor::close
virtual bool close()
socketclient::operator=
socketclient & operator=(const socketclient &c)
client::initialize
virtual void initialize(constnamevaluepairs *cd)