event/ServerSocket: add method GetEventLoop()
This commit is contained in:
parent
fa51db449f
commit
18c4b536f2
@ -49,6 +49,10 @@ public:
|
||||
ServerSocket(EventLoop &_loop);
|
||||
~ServerSocket();
|
||||
|
||||
EventLoop &GetEventLoop() {
|
||||
return loop;
|
||||
}
|
||||
|
||||
private:
|
||||
OneServerSocket &AddAddress(const sockaddr &address, size_t length);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user