LeviLamina
Loading...
Searching...
No Matches
RakWebSocketServer Class Reference
+ Inheritance diagram for RakWebSocketServer:

Classes

struct  WebsocketServerMetaDataPayload
 

Public Types

enum class  PacketDirection : int { Inward = 1 , Outward = 2 , Bothways = 3 }
 
enum class  ConnectionState : int {
  None = 0 , CloseHandshake = 1 , Starting = 2 , Connecting = 3 ,
  OpenHandshakeInit = 4 , OpenHandshakeAwait = 5 , OpenAndProcessing = 6
}
 

Public Member Functions

RakWebSocketServeroperator= (RakWebSocketServer const &)
 
 RakWebSocketServer (RakWebSocketServer const &)
 
virtual bool isReady () const
 
virtual void tick ()
 
virtual void _updateState ()
 
virtual uint _genMaskingKey () const
 
virtual::WSConnectionResult connect (::std::string const &uri, ::std::vector<::std::string > const &subProtocols)
 
virtual::WSConnectionResult connect (::std::string const &uri)
 
virtual void setOnMessageReceivedHandler (::std::function< void(::RakWebSocketDataFrame const &)> const &handler)
 
virtual void setOnCloseHandler (::std::function< void(::CloseStatusCode, ::std::string const &)> const &handler)
 
virtual void setOnConnectedHandler (::std::function< void(::std::string const &)> const &handler)
 
MCAPI void _close (::CloseStatusCode code)
 
MCAPI void _createWebSocketKey ()
 
MCAPI void _fail (::std::string const &error, ::CloseStatusCode code)
 
MCAPI::std::string _generateBase64SHA1Key (::std::string const &key)
 
MCAPI void _processClosingHandshake (bool notifyHandler)
 
MCAPI void _processDataFrames (::RakNet::BitStream &newIncoming)
 
MCAPI bool _processPacket (::std::function< void(::RakNet::BitStream &)> const &processStep, bool acceptNewConnection)
 
MCAPI void _reset ()
 
MCAPI bool _sendControlFrame (uchar const *payload, uint64 size, ::OpCode opCode)
 
MCAPI bool _sendDataFrame (uchar const *payload, uint size, ::OpCode opCode, bool isFinalFragment)
 
MCAPI bool _sendNonControlFrame (uchar const *payload, uint64 size, ::OpCode opCode)
 
MCAPI void _splitWebSocketURI (::std::string const &uri, ::std::string &scheme, ::std::string &host, ::std::string &path)
 
MCAPI void _subProcessHttpResponse (::RakNet::BitStream &newIncoming)
 
MCAPI void _validateFields ()
 
MCAPI bool _validateWebSocketURI ()
 
MCAPI bool send (::std::string const &message)
 
MCAPI void * $ctor (::std::unique_ptr<::TcpProxy > proxy, bool isServer)
 
MCAPI void $dtor ()
 
MCAPI::WSConnectionResult $connect (::std::string const &uri, ::std::vector<::std::string > const &subProtocols)
 
MCAPI::WSConnectionResult $connect (::std::string const &uri)
 
MCAPI bool $isReady () const
 
MCAPI void $setOnMessageReceivedHandler (::std::function< void(::RakWebSocketDataFrame const &)> const &handler)
 
MCAPI void $setOnCloseHandler (::std::function< void(::CloseStatusCode, ::std::string const &)> const &handler)
 
MCAPI void $setOnConnectedHandler (::std::function< void(::std::string const &)> const &handler)
 
MCAPI void $tick ()
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 

Public Attributes

::ll::UntypedStorage< 8, 40 > mUnkd9873e
 
::ll::UntypedStorage< 8, 8 > mUnk8dc180
 
::ll::UntypedStorage< 8, 136 > mUnk33094b
 
::ll::UntypedStorage< 8, 288 > mUnkf81a14
 
::ll::UntypedStorage< 8, 32 > mUnk9fda3d
 
::ll::UntypedStorage< 2, 2 > mUnkd89728
 
::ll::UntypedStorage< 1, 1 > mUnk21496a
 
::ll::UntypedStorage< 4, 4 > mUnk353334
 
::ll::UntypedStorage< 8, 104 > mUnk36f6f3
 
::ll::UntypedStorage< 8, 32 > mUnk3e1e17
 
::ll::UntypedStorage< 1, 1 > mUnkecfccb
 
::ll::UntypedStorage< 8, 64 > mUnkbc67d8
 
::ll::UntypedStorage< 8, 64 > mUnkb91861
 
::ll::UntypedStorage< 8, 64 > mUnk1ffa0d
 
::ll::UntypedStorage< 8, 32 > mUnkd9cf46
 
::ll::UntypedStorage< 8, 32 > mUnk9c97f4
 
::ll::UntypedStorage< 8, 32 > mUnke28242
 
::ll::UntypedStorage< 8, 32 > mUnkeb54d8
 
::ll::UntypedStorage< 8, 32 > mUnk4a88f7
 
::ll::UntypedStorage< 2, 2 > mUnkc7a25d
 
::ll::UntypedStorage< 1, 1 > mUnk67328e
 
::ll::UntypedStorage< 8, 32 > mUnk60a8e6
 
::ll::UntypedStorage< 8, 32 > mUnka50af4
 
::ll::UntypedStorage< 8, 32 > mUnkb0ccf9
 
::ll::UntypedStorage< 8, 128 > mUnk6c717f
 
::ll::UntypedStorage< 8, 8 > mUnk5f029b
 
::ll::UntypedStorage< 8, 24 > mUnk9ddaab
 
::ll::UntypedStorage< 4, 4 > mUnk8a7ba4
 

Member Function Documentation

◆ isReady()

virtual bool RakWebSocketServer::isReady ( ) const
virtual

Reimplemented from RakWebSocket.

◆ tick()

virtual void RakWebSocketServer::tick ( )
virtual

Reimplemented from RakWebSocket.

◆ _updateState()

virtual void RakWebSocketServer::_updateState ( )
virtual

Implements RakWebSocket.

◆ _genMaskingKey()

virtual uint RakWebSocketServer::_genMaskingKey ( ) const
virtual

Implements RakWebSocket.

◆ _close()

MCAPI void RakWebSocket::_close ( ::CloseStatusCode code)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _createWebSocketKey()

MCAPI void RakWebSocket::_createWebSocketKey ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _fail()

MCAPI void RakWebSocket::_fail ( ::std::string const & error,
::CloseStatusCode code )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _generateBase64SHA1Key()

MCAPI::std::string RakWebSocket::_generateBase64SHA1Key ( ::std::string const & key)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _processClosingHandshake()

MCAPI void RakWebSocket::_processClosingHandshake ( bool notifyHandler)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _processDataFrames()

MCAPI void RakWebSocket::_processDataFrames ( ::RakNet::BitStream & newIncoming)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _processPacket()

MCAPI bool RakWebSocket::_processPacket ( ::std::function< void(::RakNet::BitStream &)> const & processStep,
bool acceptNewConnection )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _reset()

MCAPI void RakWebSocket::_reset ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendControlFrame()

MCAPI bool RakWebSocket::_sendControlFrame ( uchar const * payload,
uint64 size,
::OpCode opCode )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendDataFrame()

MCAPI bool RakWebSocket::_sendDataFrame ( uchar const * payload,
uint size,
::OpCode opCode,
bool isFinalFragment )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendNonControlFrame()

MCAPI bool RakWebSocket::_sendNonControlFrame ( uchar const * payload,
uint64 size,
::OpCode opCode )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _splitWebSocketURI()

MCAPI void RakWebSocket::_splitWebSocketURI ( ::std::string const & uri,
::std::string & scheme,
::std::string & host,
::std::string & path )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _subProcessHttpResponse()

MCAPI void RakWebSocket::_subProcessHttpResponse ( ::RakNet::BitStream & newIncoming)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _validateFields()

MCAPI void RakWebSocket::_validateFields ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _validateWebSocketURI()

MCAPI bool RakWebSocket::_validateWebSocketURI ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ send()

MCAPI bool RakWebSocket::send ( ::std::string const & message)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * RakWebSocket::$ctor ( ::std::unique_ptr<::TcpProxy > proxy,
bool isServer )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void RakWebSocket::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $connect() [1/2]

MCAPI::WSConnectionResult RakWebSocket::$connect ( ::std::string const & uri,
::std::vector<::std::string > const & subProtocols )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $connect() [2/2]

MCAPI::WSConnectionResult RakWebSocket::$connect ( ::std::string const & uri)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isReady()

MCAPI bool RakWebSocket::$isReady ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setOnMessageReceivedHandler()

MCAPI void RakWebSocket::$setOnMessageReceivedHandler ( ::std::function< void(::RakWebSocketDataFrame const &)> const & handler)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setOnCloseHandler()

MCAPI void RakWebSocket::$setOnCloseHandler ( ::std::function< void(::CloseStatusCode, ::std::string const &)> const & handler)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setOnConnectedHandler()

MCAPI void RakWebSocket::$setOnConnectedHandler ( ::std::function< void(::std::string const &)> const & handler)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $tick()

MCAPI void RakWebSocket::$tick ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

static MCAPI void ** RakWebSocket::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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