Hello ,I want to implement a client server program,but I wish to use more OOP into the design(inheritance,virtual....),I only come up with this design and I nedd some pointers what can I do better,any sugestions will be welcome,Thanx
class TCPSocket {
public:
virtual void send(std::string buffer_m) throw(Error);
virtual void recv(std::string buffer_m) throw(Error);
void showUser() throw(Error);
void showForeignUser() throw(Error);
void create() throw(Error);
void bind() throw(Error);
void close() throw(Error);
};
class TCPClient: public TCPSocket {
public:
void connect() throw(Error);
};
class TCPServer: public TCPSocket {
void accept() throw(Error);
void listen() throw(Error);
};
PS: ignore what functions return and what arguments they take.