summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-02-27 04:50:28 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-02-27 04:50:28 +0700
commit23446011afef95c4e83cbce8dfec736831878563 (patch)
treeb6a66412365c076e49d43b9b79f2f2eb08f32037
parente5480d2c2bc703ed1b387df753220506db2aceec (diff)
fake_trx/udp_link.py: drop useless UDPLink.loop() API
So far, this API is not used anywhere. Let's drop it. Change-Id: I87ea2436f0b6bbeb62fe17700af48a048be143bb
-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