You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename IP_Unix, IP_Address and TCP_Server to remove underscores
This commit is contained in:
@@ -255,7 +255,7 @@ void GDScriptLanguageProtocol::poll() {
|
||||
}
|
||||
}
|
||||
|
||||
Error GDScriptLanguageProtocol::start(int p_port, const IP_Address &p_bind_ip) {
|
||||
Error GDScriptLanguageProtocol::start(int p_port, const IPAddress &p_bind_ip) {
|
||||
return server->listen(p_port, p_bind_ip);
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
static GDScriptLanguageProtocol *singleton;
|
||||
|
||||
HashMap<int, Ref<LSPeer>> clients;
|
||||
Ref<TCP_Server> server;
|
||||
Ref<TCPServer> server;
|
||||
int latest_client_id = 0;
|
||||
int next_client_id = 0;
|
||||
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
_FORCE_INLINE_ bool is_initialized() const { return _initialized; }
|
||||
|
||||
void poll();
|
||||
Error start(int p_port, const IP_Address &p_bind_ip);
|
||||
Error start(int p_port, const IPAddress &p_bind_ip);
|
||||
void stop();
|
||||
|
||||
void notify_client(const String &p_method, const Variant &p_params = Variant(), int p_client_id = -1);
|
||||
|
||||
@@ -78,7 +78,7 @@ void GDScriptLanguageServer::thread_main(void *p_userdata) {
|
||||
void GDScriptLanguageServer::start() {
|
||||
port = (int)_EDITOR_GET("network/language_server/remote_port");
|
||||
use_thread = (bool)_EDITOR_GET("network/language_server/use_thread");
|
||||
if (protocol.start(port, IP_Address("127.0.0.1")) == OK) {
|
||||
if (protocol.start(port, IPAddress("127.0.0.1")) == OK) {
|
||||
EditorNode::get_log()->add_message("--- GDScript language server started ---", EditorLog::MSG_TYPE_EDITOR);
|
||||
if (use_thread) {
|
||||
thread_running = true;
|
||||
|
||||
Reference in New Issue
Block a user