Rudiments
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 
32 
36 
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
Definition: socketclient.h:13
Definition: unixsocketclient.h:26
Definition: unixsocketutil.h:13
virtual int32_t connect()
virtual bool close()
socketclient & operator=(const socketclient &c)
virtual void initialize(constnamevaluepairs *cd)