Rudiments
inetclientsocket.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_INETCLIENTSOCKET_H
5 #define RUDIMENTS_INETCLIENTSOCKET_H
6 
7 #include <rudiments/private/inetclientsocketincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class inetclientsocketprivate;
14 
21 class RUDIMENTS_DLLSPEC inetclientsocket : public clientsocket, private inetsocketutil {
22  public:
23 
26 
30 
33  inetclientsocket &operator=(const inetclientsocket &i);
34 
36  virtual ~inetclientsocket();
37 
46  int32_t connect(const char *host,
47  uint16_t port,
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 *host,
65  uint16_t port,
66  long timeoutsec,
67  long timeoutusec,
68  unsigned long retrywait,
69  unsigned long retrycount);
70 
100  int32_t connect();
101 
102  #include <rudiments/private/inetclientsocket.h>
103 };
104 
105 #ifdef RUDIMENTS_NAMESPACE
106 }
107 #endif
108 
109 #endif