Remove some useless virtual method from SocketHandler
This commit is contained in:
@@ -20,11 +20,10 @@ public:
|
||||
SocketHandler& operator=(const SocketHandler&) = delete;
|
||||
SocketHandler& operator=(SocketHandler&&) = delete;
|
||||
|
||||
virtual void on_recv() = 0;
|
||||
virtual void on_send() = 0;
|
||||
virtual void connect() = 0;
|
||||
virtual void on_recv() {}
|
||||
virtual void on_send() {}
|
||||
virtual void connect() {}
|
||||
virtual bool is_connected() const = 0;
|
||||
virtual bool is_connecting() const = 0;
|
||||
|
||||
socket_t get_socket() const
|
||||
{ return this->socket; }
|
||||
|
||||
Reference in New Issue
Block a user