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 | |
| ServerSocket & | operator= (const ServerSocket &other)=delete |
| Status | Listen (uint16_t port=0) |
| Result< SocketStream > | Accept () |
| void | Close () |
| uint16_t | port () const |