Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

TCPSocket.h

00001 /*
00002  *  Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *  The European Organization for Nuclear Research (CERN),
00004  *  Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *  Datamat Spa, Italy
00006  *  Centre National de la Recherche Scientifique (CNRS), France
00007  *  CS Systeme d'Information (CSSI), France
00008  *  Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *  Universiteit van Amsterdam (UvA), Netherlands
00010  *  University of Helsinki (UH.HIP), Finland
00011  *  University of Bergen (UiB), Norway
00012  *  Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  */
00014 #ifndef RGMA_TCPSOCKET_H
00015 #define RGMA_TCPSOCKET_H
00016 #include "rgma/RGMAException.h"
00017 #include "rgma/RemoteException.h"
00018 #include "rgma/Socket.h"
00019 #include "log4cxx/logger.h"
00020 #include "log4cxx/level.h"
00021 #include "log4cxx/helpers/loglog.h"
00022 #include "log4cxx/propertyconfigurator.h"
00023 #include "log4cxx/helpers/exception.h"
00024 #include <arpa/inet.h>
00025 //#include <ctype.h>
00026 //#include <errno.h>
00027 //#include <netdb.h>
00028 //#include <sys/socket.h>
00029 //#include <unistd.h>
00030 #include <string>
00031 
00032 namespace glite
00033 {
00034     namespace rgma
00035     {
00040         class TCPSocket:public Socket
00041         {
00042             private:
00043 
00044                 log4cxx::LoggerPtr m_logger;
00045                 struct sockaddr_in m_addr;
00046 
00047             protected:
00048                 int m_sock;
00049             public:
00050                 virtual ~TCPSocket();
00051                 TCPSocket();
00052                 virtual void connect(std::string host, int port) throw(RGMAException, RemoteException);
00053                 virtual void write(std::string request, std::string& resonse) throw(RGMAException, RemoteException);
00054                 virtual void close()throw(RGMAException, RemoteException);
00055         };
00056     }
00057 }
00058 #endif

Generated on Wed May 17 17:48:18 2006 for glite-rgma-api-cpp by doxygen 1.3.5