C/C++ API Reference
Loading...
Searching...
No Matches
pw::stream::ServerSocket Class Reference

Overview

Wraps a POSIX-style server socket, producing a pw::stream::SocketStream for each accepted client connection.

Call Listen to create the socket and start listening for connections. Then call Accept any number of times to accept client connections.

Public Member Functions

 ServerSocket (const ServerSocket &other)=delete
 
ServerSocketoperator= (const ServerSocket &other)=delete
 
Status Listen (uint16_t port=0)
 
Result< SocketStreamAccept ()
 
void Close ()
 
uint16_t port () const
 

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