10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::osa::SocketFactory Class Referenceabstract

#include <SocketFactory.h>

Detailed Description

Factory for creating sockets.

Inheritance diagram for tenduke::osa::SocketFactory:
tenduke::osa::DefaultSocketFactory tenduke::osa::win::WindowsSocketFactory

Public Member Functions

virtual std::unique_ptr< tenduke::osa::SocketcreateListeningSocket (std::uint16_t port) const =0
 Creates a listening socket.

Member Function Documentation

◆ createListeningSocket()

virtual std::unique_ptr< tenduke::osa::Socket > tenduke::osa::SocketFactory::createListeningSocket ( std::uint16_t port) const
pure virtual

Creates a listening socket.

Parameters
portport to listen on. Use 0 for a random available port
Returns
new socket instance

Implemented in DefaultSocketFactory, and tenduke::osa::DefaultSocketFactory.


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