WPILibC++ 2024.3.2
wpi::TCPAcceptor Class Reference

#include </home/runner/work/allwpilib/allwpilib/wpinet/src/main/native/thirdparty/tcpsockets/include/wpinet/TCPAcceptor.h>

Inheritance diagram for wpi::TCPAcceptor:
wpi::NetworkAcceptor

Public Member Functions

 TCPAcceptor (int port, std::string_view address, Logger &logger)
 
 ~TCPAcceptor () override
 
int start () override
 
void shutdown () final
 
std::unique_ptr< NetworkStreamaccept () override
 
- Public Member Functions inherited from wpi::NetworkAcceptor
 NetworkAcceptor ()=default
 
virtual ~NetworkAcceptor ()=default
 
virtual int start ()=0
 
virtual void shutdown ()=0
 
virtual std::unique_ptr< NetworkStreamaccept ()=0
 
 NetworkAcceptor (const NetworkAcceptor &)=delete
 
NetworkAcceptoroperator= (const NetworkAcceptor &)=delete
 

Constructor & Destructor Documentation

◆ TCPAcceptor()

wpi::TCPAcceptor::TCPAcceptor ( int  port,
std::string_view  address,
Logger logger 
)

◆ ~TCPAcceptor()

wpi::TCPAcceptor::~TCPAcceptor ( )
override

Member Function Documentation

◆ accept()

std::unique_ptr< NetworkStream > wpi::TCPAcceptor::accept ( )
overridevirtual

Implements wpi::NetworkAcceptor.

◆ shutdown()

void wpi::TCPAcceptor::shutdown ( )
finalvirtual

Implements wpi::NetworkAcceptor.

◆ start()

int wpi::TCPAcceptor::start ( )
overridevirtual

Implements wpi::NetworkAcceptor.


The documentation for this class was generated from the following file: