Skip to content

Commit 5ccbc82

Browse files
committed
Updated examples
1 parent ad67c55 commit 5ccbc82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Examples/Echo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def client(destination_hexhash, configpath, timeout=None):
170170
# the packet times out.
171171
if timeout != None:
172172
packet_receipt.set_timeout(timeout)
173-
packet_receipt.timeout_callback(packet_timed_out)
173+
packet_receipt.set_timeout_callback(packet_timed_out)
174174

175175
# We can then set a delivery callback on the receipt.
176176
# This will get automatically called when a proof for

Examples/Filetransfer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def client_connected(link):
115115
list_receipt = list_packet.send()
116116
list_receipt.set_timeout(APP_TIMEOUT)
117117
list_receipt.set_delivery_callback(list_delivered)
118-
list_receipt.timeout_callback(list_timeout)
118+
list_receipt.set_timeout_callback(list_timeout)
119119
else:
120120
RNS.log("Too many files in served directory!", RNS.LOG_ERROR)
121121
RNS.log("You should implement a function to split the filelist over multiple packets.", RNS.LOG_ERROR)

0 commit comments

Comments
 (0)