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 
24 class RUDIMENTS_DLLSPEC unixsocketclient :
25  public socketclient, private unixsocketutil {
26  public:
27 
30 
34 
38 
40  virtual ~unixsocketclient();
41 
42  // This convenience method that calls the initialize() and
43  // connect() methods of this class.
44  //
45  // Returns RESULT_SUCCESS on success and RESULT_ERROR
46  // on failure.
47  int32_t connect(const char *filename,
48  int32_t timeoutsec,
49  int32_t timeoutusec,
50  uint32_t retrywait,
51  uint32_t tries);
52 
53 
54 
59  void initialize(constnamevaluepairs *cd);
60 
64  void initialize(const char *filename,
65  int32_t timeoutsec,
66  int32_t timeoutusec,
67  uint32_t retrywait,
68  uint32_t tries);
69 
89  int32_t connect();
90 
93  bool close();
94 
95  #include <rudiments/private/unixsocketclient.h>
96 };
97 
98 #endif
Definition: socketclient.h:11
Definition: unixsocketclient.h:24
Definition: unixsocketutil.h:11
virtual int32_t connect()
virtual bool close()
socketclient & operator=(const socketclient &c)
virtual void initialize(constnamevaluepairs *cd)