00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __ISOCKET_H_
00014 #define __ISOCKET_H_
00015
00016 #include <Socket.h>
00017
00018
00019 using namespace std;
00020
00024 class ISocket : public Socket
00025 {
00026 public:
00027 ISocket(int socket);
00028 ~ISocket();
00029
00035 virtual int readLine( string &msg );
00036
00040 virtual void interrupt();
00041
00045 virtual void close();
00046
00047 protected:
00054 virtual int readBlock( void *buffer, int maxlen );
00055
00062 virtual int writeBlock( const void *buffer, int length );
00063
00064 private:
00065 int socketFD;
00066 };
00067
00068 #endif