#include <java_socket.h>
◆ JavaWebSocketFactory()
| ttv::binding::java::JavaWebSocketFactory::JavaWebSocketFactory |
( |
JNIEnv * |
jEnv, |
|
|
jobject |
jInstance |
|
) |
| |
◆ ~JavaWebSocketFactory()
| virtual ttv::binding::java::JavaWebSocketFactory::~JavaWebSocketFactory |
( |
| ) |
|
|
virtual |
◆ CreateSocket()
| TTV_ErrorCode ttv::binding::java::JavaSocketFactoryBase::CreateSocket |
( |
const std::string & |
uri, |
|
|
jobject & |
result |
|
) |
| |
|
protectedinherited |
◆ CreateWebSocket()
| virtual TTV_ErrorCode ttv::binding::java::JavaWebSocketFactory::CreateWebSocket |
( |
const std::string & |
uri, |
|
|
std::shared_ptr< IWebSocket > & |
result |
|
) |
| |
|
overridevirtual |
Attempts to create an IWebSocket instance that supports the given URI.
- See also
- ttv::RegisterWebSocketFactory
- Parameters
-
| [in] | uri | The full uri to create the socket for. |
| [out] | result | The resulting IWebSocket instance if it was able to be created. |
- Returns
- TTV_EC_SUCCESS: The result has been populated with an IWebSocket instance to use.
- TTV_EC_UNIMPLEMENTED: This factory does not support the protocol.
Implements ttv::IWebSocketFactory.
◆ GetJavaInstance()
◆ IsProtocolSupported()
| virtual bool ttv::binding::java::JavaWebSocketFactory::IsProtocolSupported |
( |
const std::string & |
protocol | ) |
|
|
overridevirtual |
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 CreateWebSocket().
- Parameters
-
| [in] | protocol | The protocol to check support for. |
- Returns
- true if the protocol is supported, false otherwise.
Implements ttv::IWebSocketFactory.
◆ mJavaInstance
The java implementation of the factory.
The documentation for this class was generated from the following file: