Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

ISocket.h

00001 /*
00002    Copyright (C) 2002 the Strongroom project
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    @author Denis de Leeuw Duarte
00010    @author Ewald Snel
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 /*__ISOCKET_H_*/

Generated on Wed Feb 18 13:45:55 2004 for strongroom by doxygen1.2.18