aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortcwan992011-07-11 07:48:29 +0000
committertcwan992011-07-11 07:48:29 +0000
commit3f7453bb255ab2ddd5bbf8353631e9b0be0075b5 (patch)
tree453cefea9c95d094dd75fc1836f3e0a4a7ab139a
parent299a6ccc135fe2b41fd4f57573f7db84e4f9cc18 (diff)
missing bsize variable for socket classes needed by file write routines
-rw-r--r--nxt/fantomsock.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nxt/fantomsock.py b/nxt/fantomsock.py
index 36c035d..f528e58 100644
--- a/nxt/fantomsock.py
+++ b/nxt/fantomsock.py
@@ -21,6 +21,8 @@ FANTOMSOCK_DEBUG = False
class BluetoothSocket:
+ bsize = BT_BUFSIZE - 4 # Bluetooth socket block size
+
'''recv() method is currently reported broken'''
def __init__(self, _sock=None):
# We instantiate a NXT object only when we connect if none supplied
@@ -64,6 +66,8 @@ class BluetoothSocket:
class USBSocket:
+ bsize = USB_BUFSIZE - 4 # USB socket block size
+
def __init__(self, device=None):
self._sock = device
self.debug = FANTOMSOCK_DEBUG