summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/target/fake_trx/udp_link.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/target/fake_trx/udp_link.py b/src/target/fake_trx/udp_link.py
index c0c41ff6..7471b98e 100644
--- a/src/target/fake_trx/udp_link.py
+++ b/src/target/fake_trx/udp_link.py
@@ -23,7 +23,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import socket
-import select
class UDPLink:
def __init__(self, remote_addr, remote_port, bind_port):
@@ -38,19 +37,8 @@ class UDPLink:
def __del__(self):
self.sock.close()
- def loop(self):
- r_event, w_event, x_event = select.select([self.sock], [], [])
-
- # Check for incoming data
- if self.sock in r_event:
- data, addr = self.sock.recvfrom(128)
- self.handle_rx(data.decode())
-
def send(self, data):
if type(data) not in [bytearray, bytes]:
data = data.encode()
self.sock.sendto(data, (self.remote_addr, self.remote_port))
-
- def handle_rx(self, data):
- raise NotImplementedError