Observer of socket events.
Synopsis
Declared in <folly/io/async/observer/AsyncSocketObserverInterface.h>
class AsyncSocketObserverInterface;
Types
Name |
Description |
Structure used to communicate ByteEvents, such as TX and ACK timestamps. |
|
Request that can be generated by observer in response to prewrite event. |
|
Container of PrewriteRequests passed on invocation of prewrite(). |
|
Information provided to observer during prewrite event. |
Enums
Name |
Description |
Set of interface events an observer can subscribe to. |
Member Functions
Name |
Description |
|
Constructs the observer interface. |
|
Destroys the observer interface. |
|
Invoked each time a ByteEvent is available. |
|
Invoked if ByteEvents are enabled. |
|
Invoked if ByteEvents could not be enabled, or if an error occurred that will prevent further delivery of ByteEvents. |
|
close() will be invoked when the socket is being closed. |
|
connectAttempt() will be invoked when connect() is called. |
|
connectError() will be invoked when connect() returns an error. |
|
connectSuccess() will be invoked when connect() returns successfully. |
|
Invoked when the socket is being attached to an EventBase. |
|
Invoked when the socket is being detached from an EventBase. |
|
fdAttach() is invoked when the socket file descriptor is attached. |
|
fdDetach() is invoked if the socket file descriptor is detached. |
|
move() will be invoked when a new AsyncSocket is being constructed via constructor AsyncSocket(AsyncSocket* oldAsyncSocket) from an AsyncSocket that has an observer attached. |
|
Invoked before each write to the socket if prewrite support enabled. |
Derived Classes
Name |
Description |
Observer of socket events. |
Created with MrDocs