summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2014-07-31 22:13:19 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2014-07-31 22:13:19 +0000
commit497c1d804a4203a7c06998804b25fe1c56553b45 (patch)
tree9971743ecc4067068a3dbb008edc9fd0998ca79a
parentc00ef647297d5706e533334eea28fcb00cc461db (diff)
downloadpyserial-497c1d804a4203a7c06998804b25fe1c56553b45.tar.gz
[FTR pyserial:37] Support fileno() function in the socket protocol
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@496 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-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