Update receive modes authored by Marlene Böhmer's avatar Marlene Böhmer
...@@ -23,7 +23,7 @@ Each mode comes with the following calls: ...@@ -23,7 +23,7 @@ Each mode comes with the following calls:
Ordered receive modes require a time window: Ordered receive modes require a time window:
```python ```python
data, addr = self.socket.receive_ordered(window) data, addr = socket.receive_ordered(window)
``` ```
A timedwait receive requires a utc deadline and needs some exeption handling: A timedwait receive requires a utc deadline and needs some exeption handling:
...@@ -31,7 +31,7 @@ A timedwait receive requires a utc deadline and needs some exeption handling: ...@@ -31,7 +31,7 @@ A timedwait receive requires a utc deadline and needs some exeption handling:
```python ```python
deadline = datetime.datetime.utcnow() + datetime.timedelta(seconds=delta) deadline = datetime.datetime.utcnow() + datetime.timedelta(seconds=delta)
try: try:
data, addr = self.socket.receive_asap_timedwait(deadline) data, addr = socket.receive_asap_timedwait(deadline)
except prrt.TimeoutException: except prrt.TimeoutException:
pass pass
``` ```
\ No newline at end of file