summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt1
-rw-r--r--serial/urlhandler/protocol_socket.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index da3f6df..2433647 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -478,6 +478,7 @@ Bugfixes (win32):
Version 2.8 2014-xx-xx
---------------------------
+- [FTR pyserial:37] Support fileno() function in the socket protocol
Bugfixes:
diff --git a/serial/urlhandler/protocol_socket.py b/serial/urlhandler/protocol_socket.py
index c90a8e4..09a23d0 100644
--- a/serial/urlhandler/protocol_socket.py
+++ b/serial/urlhandler/protocol_socket.py
@@ -242,7 +242,11 @@ class SocketSerial(SerialBase):
return True
# - - - platform specific - - -
- # None so far
+
+ # works on Linux and probably all the other POSIX systems
+ def fileno(self):
+ """Get the file handle of the underlying socket for use with select"""
+ return self._socket.fileno()
# assemble Serial class with the platform specific implementation and the base