diff options
| author | Juan Linietsky | 2017-01-14 00:54:21 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-14 00:54:21 -0300 |
| commit | 6c512b88c22cb9615a03deb000447e97c20c7080 (patch) | |
| tree | 44e9bd077f65d793e24f5d3b2862ae13e39f8556 /core/io/packet_peer_udp.cpp | |
| parent | d9d77291bca8dd1e87aa4d9e40de96d99e5ef1f6 (diff) | |
| download | godot-6c512b88c22cb9615a03deb000447e97c20c7080.tar.gz godot-6c512b88c22cb9615a03deb000447e97c20c7080.tar.zst godot-6c512b88c22cb9615a03deb000447e97c20c7080.zip | |
Diffstat (limited to 'core/io/packet_peer_udp.cpp')
| -rw-r--r-- | core/io/packet_peer_udp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/packet_peer_udp.cpp b/core/io/packet_peer_udp.cpp index 91d1fc5f9..9fec807bf 100644 --- a/core/io/packet_peer_udp.cpp +++ b/core/io/packet_peer_udp.cpp @@ -36,7 +36,7 @@ String PacketPeerUDP::_get_packet_ip() const { return get_packet_address(); } -Error PacketPeerUDP::_set_send_address(const String& p_address, int p_port) { +Error PacketPeerUDP::_set_dest_address(const String& p_address, int p_port) { IP_Address ip; if (p_address.is_valid_ip_address()) { @@ -47,7 +47,7 @@ Error PacketPeerUDP::_set_send_address(const String& p_address, int p_port) { return ERR_CANT_RESOLVE; } - set_send_address(ip,p_port); + set_dest_address(ip,p_port); return OK; } @@ -66,7 +66,7 @@ void PacketPeerUDP::_bind_methods() { ClassDB::bind_method(_MD("get_packet_ip"),&PacketPeerUDP::_get_packet_ip); //ClassDB::bind_method(_MD("get_packet_address"),&PacketPeerUDP::_get_packet_address); ClassDB::bind_method(_MD("get_packet_port"),&PacketPeerUDP::get_packet_port); - ClassDB::bind_method(_MD("set_send_address","host","port"),&PacketPeerUDP::_set_send_address); + ClassDB::bind_method(_MD("set_dest_address","host","port"),&PacketPeerUDP::_set_dest_address); } |
