00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef RGMA_SOCKET_H
00015 #define RGMA_SOCKET_H
00016 #include "rgma/RGMAException.h"
00017 #include "rgma/RemoteException.h"
00018 #include <string>
00019
00020 namespace glite
00021 {
00022 namespace rgma
00023 {
00027 class Socket
00028 {
00029 private:
00030 public:
00031 virtual ~Socket(){}
00032 virtual void connect(std::string host, int port) throw(RGMAException, RemoteException) = 0;
00033 virtual void write(std::string request, std::string& resonse) throw(RGMAException, RemoteException) = 0;
00034 virtual void close()throw(RGMAException, RemoteException) = 0;
00035 };
00036 }
00037 }
00038 #endif