Rudiments
unixclientsocket.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_UNIXCLIENTSOCKET_H
5 #define RUDIMENTS_UNIXCLIENTSOCKET_H
6 
7 #include <rudiments/private/unixclientsocketincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class unixclientsocketprivate;
14 
25 class RUDIMENTS_DLLSPEC unixclientsocket : public clientsocket, private unixsocketutil {
26  public:
27 
30 
34 
37  unixclientsocket &operator=(const unixclientsocket &u);
38 
40  virtual ~unixclientsocket();
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  long timeoutsec,
49  long timeoutusec,
50  unsigned long retrywait,
51  unsigned long retrycount);
52 
53 
54 
59  void initialize(constnamevaluepairs *cd);
60 
64  void initialize(const char *filename,
65  long timeoutsec,
66  long timeoutusec,
67  unsigned long retrywait,
68  unsigned long retrycount);
69 
88  int32_t connect();
89 
90  #include <rudiments/private/unixclientsocket.h>
91 };
92 
93 #ifdef RUDIMENTS_NAMESPACE
94 }
95 #endif
96 
97 #endif