feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -33,6 +33,11 @@
|
|||
#ifdef WEB_ENABLED
|
||||
|
||||
#include "core/io/ip.h"
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
WebSocketPeer *EMWSPeer::_create(bool p_notify_postinitialize) {
|
||||
return static_cast<WebSocketPeer *>(ClassDB::creator<EMWSPeer>(p_notify_postinitialize));
|
||||
}
|
||||
|
||||
void EMWSPeer::_esws_on_connect(void *p_obj, char *p_proto) {
|
||||
EMWSPeer *peer = static_cast<EMWSPeer *>(p_obj);
|
||||
|
|
@ -106,7 +111,7 @@ Error EMWSPeer::connect_to_url(const String &p_url, const Ref<TLSOptions> &p_tls
|
|||
if (peer_sock == -1) {
|
||||
return FAILED;
|
||||
}
|
||||
in_buffer.resize(nearest_shift((uint32_t)inbound_buffer_size), max_queued_packets);
|
||||
in_buffer.resize(Math::nearest_shift((uint32_t)inbound_buffer_size), max_queued_packets);
|
||||
packet_buffer.resize(inbound_buffer_size);
|
||||
ready_state = STATE_CONNECTING;
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue