Commit aab167ad269b3a9fe960350a708a5cccaecbee27
1 parent
b2e81805
[DEBUG] add some print for debugging
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
net_services/CXM_generic_protocol.anubis
| @@ -197,7 +197,7 @@ public define Bool | @@ -197,7 +197,7 @@ public define Bool | ||
| 197 | )= | 197 | )= |
| 198 | //create the target | 198 | //create the target |
| 199 | with target_file = tmp_path + "/" + f_ref.name, | 199 | with target_file = tmp_path + "/" + f_ref.name, |
| 200 | - | 200 | + println("NET_SERVICE get_file_ref for "+target_file); |
| 201 | with msg = message(_CXM_GET_FILE_REF), | 201 | with msg = message(_CXM_GET_FILE_REF), |
| 202 | forget(add_message(msg, "GET_FILE_REF", to_Message(f_ref))); | 202 | forget(add_message(msg, "GET_FILE_REF", to_Message(f_ref))); |
| 203 | forget(mQ.add_Message_to_send(msg)); | 203 | forget(mQ.add_Message_to_send(msg)); |
| @@ -244,14 +244,14 @@ public define Bool | @@ -244,14 +244,14 @@ public define Bool | ||
| 244 | MessageQueue mQ, | 244 | MessageQueue mQ, |
| 245 | Message msg, | 245 | Message msg, |
| 246 | )= | 246 | )= |
| 247 | - | 247 | + println("NET_SERVICE send_file_ref received"); |
| 248 | if *msg.what = _CXM_GET_FILE_REF then | 248 | if *msg.what = _CXM_GET_FILE_REF then |
| 249 | if find_message(msg, "GET_FILE_REF") is { | 249 | if find_message(msg, "GET_FILE_REF") is { |
| 250 | - failure then false | 250 | + failure then println("NET_SERVICE send_file_ref: can't find GET_FILE_REF message"); false |
| 251 | success(file_ref_obj_msg) then | 251 | success(file_ref_obj_msg) then |
| 252 | if (Maybe(File_ref))from_Message(file_ref_obj_msg) is | 252 | if (Maybe(File_ref))from_Message(file_ref_obj_msg) is |
| 253 | { | 253 | { |
| 254 | - failure then false, | 254 | + failure then println("NET_SERVICE send_file_ref: can't extract GET_FILE_REF message");false, |
| 255 | success(f_ref) then | 255 | success(f_ref) then |
| 256 | 256 | ||
| 257 | //create the target | 257 | //create the target |
| @@ -264,7 +264,7 @@ public define Bool | @@ -264,7 +264,7 @@ public define Bool | ||
| 264 | 264 | ||
| 265 | if (Maybe(RStream))file(source_file, read) is | 265 | if (Maybe(RStream))file(source_file, read) is |
| 266 | { | 266 | { |
| 267 | - failure then println("can't open source file"+source_file);false, //nothing to write | 267 | + failure then println("NET_SERVICE send_file_ref: can't open source file"+source_file);false, //nothing to write |
| 268 | success(source) then | 268 | success(source) then |
| 269 | send_ACK_ok(mQ, _CXM_GET_FILE_REF, msg); | 269 | send_ACK_ok(mQ, _CXM_GET_FILE_REF, msg); |
| 270 | if copy_file_to_Connection(file(source), mQ.get_connection(unique), size) is | 270 | if copy_file_to_Connection(file(source), mQ.get_connection(unique), size) is |