Rudiments
/home/dmuse/src/rudiments/include/rudiments/inetclientsocket.h
00001 // Copyright (c) 2002 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_INETCLIENTSOCKET_H
00005 #define RUDIMENTS_INETCLIENTSOCKET_H
00006 
00007 #include <rudiments/private/inetclientsocketincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class inetclientsocketprivate;
00014 
00021 class RUDIMENTS_DLLSPEC inetclientsocket : public clientsocket, private inetsocketutil  {
00022         public:
00023 
00025                 inetclientsocket();
00026 
00029                 inetclientsocket(const inetclientsocket &i);
00030 
00033                 inetclientsocket        &operator=(const inetclientsocket &i);
00034 
00036                 virtual         ~inetclientsocket();
00037 
00046                 int32_t connect(const char *host,
00047                                         uint16_t port,
00048                                         long timeoutsec,
00049                                         long timeoutusec,
00050                                         unsigned long retrywait,
00051                                         unsigned long retrycount);
00052 
00053 
00054 
00059                 void    initialize(constnamevaluepairs *cd);
00060 
00064                 void    initialize(const char *host,
00065                                                 uint16_t port,
00066                                                 long timeoutsec,
00067                                                 long timeoutusec,
00068                                                 unsigned long retrywait,
00069                                                 unsigned long retrycount);
00070 
00100                 int32_t connect();
00101 
00102         #include <rudiments/private/inetclientsocket.h>
00103 };
00104 
00105 #ifdef RUDIMENTS_NAMESPACE
00106 }
00107 #endif
00108 
00109 #endif