Commit d7a6b80d47faa787c138d7c0ca41010964086b01

Authored by Cédric RICARD
1 parent 93d0a28f

Removing dns() call

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
calexium_lib/net_services_protocols/ftp_client.anubis
@@ -15,6 +15,7 @@ read system/message_transceiver.anubis @@ -15,6 +15,7 @@ read system/message_transceiver.anubis
15 read system/muscle.anubis 15 read system/muscle.anubis
16 read system/files.anubis 16 read system/files.anubis
17 read tools/basis.anubis 17 read tools/basis.anubis
  18 +read network/dns.anubis
18 19
19 define Maybe(One) 20 define Maybe(One)
20 receive_data 21 receive_data
@@ -134,8 +135,8 @@ public define Maybe(One) @@ -134,8 +135,8 @@ public define Maybe(One)
134 Word32 ip_port, 135 Word32 ip_port,
135 String remote_file, 136 String remote_file,
136 String local_file 137 String local_file
137 - )=  
138 - if dns(server) is ok(ip_adr) then 138 + ) =
  139 + if resolve_address(server) is success(ip_adr) then
139 if connect( ip_adr, ip_port) is 140 if connect( ip_adr, ip_port) is
140 { 141 {
141 error(_) then println("can't connect to ftp server"); failure, 142 error(_) then println("can't connect to ftp server"); failure,