class EventListener

Defined at line 265 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

Public Methods

void EventListener ()

Defined at line 267 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

void EventListener (const EventListener & )

Defined at line 270 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

EventListener & operator= (const EventListener & )

Defined at line 271 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

void EventListener (EventListener && )

Defined at line 273 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

EventListener & operator= (EventListener && )

Defined at line 274 of file ../../third_party/perfetto/include/perfetto/ext/base/unix_socket.h

void ~EventListener ()
void OnNewIncomingConnection (UnixSocket * self, std::unique_ptr<UnixSocket> new_connection)

After Listen().

|self| may be null if the connection was not accepted via a listen

socket.

void OnConnect (UnixSocket * self, bool connected)

After Connect(), whether successful or not.

void OnDisconnect (UnixSocket * self)

After a successful Connect() or OnNewIncomingConnection(). Either the

other endpoint did disconnect or some other error happened.

void OnDataAvailable (UnixSocket * self)

Whenever there is data available to Receive(). Note that spurious FD

watch events are possible, so it is possible that Receive() soon after

OnDataAvailable() returns 0 (just ignore those).