|
Twitch SDK (Internal)
|
#include <socket.h>
Public Member Functions | |
| virtual | ~ISocketFactory ()=default |
| virtual bool | IsProtocolSupported (const std::string &protocol)=0 |
| virtual TTV_ErrorCode | CreateSocket (const std::string &uri, std::shared_ptr< ISocket > &result)=0 |
An interface for classes that can create ISocket instances.
|
virtualdefault |
Destructor.
|
pure virtual |
Attempts to create an ISocket instance that supports the given URI.
| [in] | uri | The full uri to create the socket for. |
| [out] | result | The resulting ISocket instance if it was able to be created. |
Implemented in ttv::binding::java::JavaSocketFactory, ttv::OpenSslSocketFactory, ttv::WinAppSocketFactory, ttv::WinSocketFactory, ttv::SecureCFSocketFactory, ttv::StandardFileSocketFactory, ttv::RawCFSocketFactory, and ttv::StandardSocketFactory.
|
pure 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().
| [in] | protocol | The protocol to check support for. |
Implemented in ttv::binding::java::JavaSocketFactory, ttv::OpenSslSocketFactory, ttv::WinAppSocketFactory, ttv::WinSocketFactory, ttv::SecureCFSocketFactory, ttv::StandardFileSocketFactory, ttv::RawCFSocketFactory, and ttv::StandardSocketFactory.
1.8.13