Coroutine transport backed by an AsyncTransport socket.
Synopsis
Declared in <folly/io/coro/Transport.h>
class Transport
: public TransportIf
Base Classes
Name |
Description |
Abstract interface for a coroutine‐based socket transport. |
Types
Name |
Description |
Result of a write, reporting how many bytes were written. |
Type Aliases
Name |
Description |
Type used to report socket errors. |
Member Functions
Name |
Description |
|
Constructors |
Move‐assigns a transport. |
|
|
Attaches the transport to the given event base. |
|
Closes the transport. |
|
Closes the transport by sending a reset (RST). |
|
Detaches the transport from its event base. |
|
Returns the event base driving this transport. |
|
Returns the local address of the socket. |
|
Returns the remote address of the socket. |
|
Returns the peer's certificate, if any. |
|
Returns the underlying async transport. |
|
|
|
Shuts down the write side of the transport. |
|
Static Member Functions
Name |
Description |
Establishes a TCP connection and returns a Transport wrapping the socket. |
Protected Data Members
Name |
Description |
Event base driving this transport. |
|
Underlying async transport socket. |
Created with MrDocs