#include <standardsocket.h>
◆ ~StandardSocketFactory()
| virtual ttv::StandardSocketFactory::~StandardSocketFactory |
( |
| ) |
|
|
virtual |
◆ CreateSocket()
| virtual TTV_ErrorCode ttv::StandardSocketFactory::CreateSocket |
( |
const std::string & |
uri, |
|
|
std::shared_ptr< ISocket > & |
result |
|
) |
| |
|
virtual |
Attempts to create an ISocket instance that supports the given URI.
- See also
- ttv::RegisterSocketFactory
- Parameters
-
| [in] | uri | The full uri to create the socket for. |
| [out] | result | The resulting ISocket instance if it was able to be created. |
- Returns
- TTV_EC_SUCCESS: The result has been populated with an ISocket instance to use.
- TTV_EC_UNIMPLEMENTED: This factory does not support the protocol.
Implements ttv::ISocketFactory.
◆ IsProtocolSupported()
| virtual bool ttv::StandardSocketFactory::IsProtocolSupported |
( |
const std::string & |
protocol | ) |
|
|
virtual |
Determines if this factory supports the given protocol. If the factory claims that is supports the given protocol then it must return a valid ISocket instance from CreateSocket().
- Parameters
-
| [in] | protocol | The protocol to check support for. |
- Returns
- true if the protocol is supported, false otherwise.
Implements ttv::ISocketFactory.
The documentation for this class was generated from the following file: