Lines Matching refs:AsyncSocket
26 class AsyncSocket : public Socket {
28 AsyncSocket();
29 ~AsyncSocket() override;
31 AsyncSocket* Accept(SocketAddress* paddr) override = 0;
38 sigslot::signal1<AsyncSocket*, sigslot::multi_threaded_local> SignalReadEvent;
40 sigslot::signal1<AsyncSocket*, sigslot::multi_threaded_local>
42 sigslot::signal1<AsyncSocket*> SignalConnectEvent; // connected
43 sigslot::signal2<AsyncSocket*, int> SignalCloseEvent; // closed
46 class AsyncSocketAdapter : public AsyncSocket, public sigslot::has_slots<> {
52 explicit AsyncSocketAdapter(AsyncSocket* socket);
54 void Attach(AsyncSocket* socket);
67 AsyncSocket* Accept(SocketAddress* paddr) override;
76 virtual void OnConnectEvent(AsyncSocket* socket);
77 virtual void OnReadEvent(AsyncSocket* socket);
78 virtual void OnWriteEvent(AsyncSocket* socket);
79 virtual void OnCloseEvent(AsyncSocket* socket, int err);
81 AsyncSocket* socket_;