mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
StreamPeerWinsock: Fix changed declarations
Bug introduced in dcb95ec147
.
This commit is contained in:
parent
7c4167de64
commit
479790a841
@ -218,7 +218,7 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent,
|
||||
|
||||
perror("shit?");
|
||||
disconnect_from_host();
|
||||
ERR_PRINT("Server disconnect_from_hosted!\n");
|
||||
ERR_PRINT("Server disconnected!\n");
|
||||
return FAILED;
|
||||
};
|
||||
|
||||
@ -275,7 +275,7 @@ Error StreamPeerTCPPosix::read(uint8_t* p_buffer, int p_bytes,int &r_received, b
|
||||
|
||||
perror("shit?");
|
||||
disconnect_from_host();
|
||||
ERR_PRINT("Server disconnect_from_hosted!\n");
|
||||
ERR_PRINT("Server disconnected!\n");
|
||||
return FAILED;
|
||||
};
|
||||
|
||||
|
@ -150,7 +150,7 @@ Error StreamPeerWinsock::write(const uint8_t* p_data,int p_bytes, int &r_sent, b
|
||||
|
||||
perror("shit?");
|
||||
disconnect_from_host();
|
||||
ERR_PRINT("Server disconnect_from_hosted!\n");
|
||||
ERR_PRINT("Server disconnected!\n");
|
||||
return FAILED;
|
||||
};
|
||||
|
||||
@ -207,7 +207,7 @@ Error StreamPeerWinsock::read(uint8_t* p_buffer, int p_bytes,int &r_received, bo
|
||||
|
||||
perror("shit?");
|
||||
disconnect_from_host();
|
||||
ERR_PRINT("Server disconnect_from_hosted!\n");
|
||||
ERR_PRINT("Server disconnected!\n");
|
||||
return FAILED;
|
||||
};
|
||||
|
||||
|
@ -73,9 +73,9 @@ public:
|
||||
virtual IP_Address get_connected_host() const;
|
||||
virtual uint16_t get_connected_port() const;
|
||||
|
||||
virtual bool is_connected() const;
|
||||
virtual bool is_connected_to_host() const;
|
||||
virtual Status get_status() const;
|
||||
virtual void disconnect();
|
||||
virtual void disconnect_from_host();
|
||||
|
||||
static void make_default();
|
||||
static void cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user