#include <grpc/support/port_platform.h>
#include "src/core/lib/transport/tcp_connect_handshaker.h"
#include <memory>
#include "absl/base/thread_annotations.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/event_engine/channel_args_endpoint_config.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/iomgr/polling_entity.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/iomgr/tcp_client.h"
#include "src/core/lib/iomgr/tcp_server.h"
#include "src/core/lib/transport/handshaker.h"
#include "src/core/lib/transport/handshaker_factory.h"
#include "src/core/lib/transport/handshaker_registry.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {
namespace {
class TCPConnectHandshaker : public Handshaker { … };
TCPConnectHandshaker::TCPConnectHandshaker(grpc_pollset_set* pollset_set)
: … { … }
void TCPConnectHandshaker::Shutdown(grpc_error_handle ) { … }
void TCPConnectHandshaker::DoHandshake(grpc_tcp_server_acceptor* ,
grpc_closure* on_handshake_done,
HandshakerArgs* args) { … }
void TCPConnectHandshaker::Connected(void* arg, grpc_error_handle error) { … }
TCPConnectHandshaker::~TCPConnectHandshaker() { … }
void TCPConnectHandshaker::CleanupArgsForFailureLocked() { … }
void TCPConnectHandshaker::FinishLocked(grpc_error_handle error) { … }
class TCPConnectHandshakerFactory : public HandshakerFactory { … };
}
void RegisterTCPConnectHandshaker(CoreConfiguration::Builder* builder) { … }
}