Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
test.test_socket.FileObjectInterruptedTestCase.MockSocket Class Reference
Inheritance diagram for test.test_socket.FileObjectInterruptedTestCase.MockSocket:
Inheritance graph
[legend]
Collaboration diagram for test.test_socket.FileObjectInterruptedTestCase.MockSocket:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def recv_into

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Member Functions

def _decref_socketios
def _textiowrap_for_test

Private Attributes

 _recv_step

Detailed Description

Definition at line 1258 of file test_socket.py.


Constructor & Destructor Documentation

Definition at line 1259 of file test_socket.py.

01259 
01260         def __init__(self, recv_funcs=()):
01261             # A generator that returns callables that we'll call for each
01262             # call to recv().
01263             self._recv_step = iter(recv_funcs)

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1270 of file test_socket.py.

01270 
01271         def _decref_socketios(self):
01272             pass

Definition at line 1273 of file test_socket.py.

01273 
01274         def _textiowrap_for_test(self, buffering=-1):
01275             raw = socket.SocketIO(self, "r")
01276             if buffering < 0:
01277                 buffering = io.DEFAULT_BUFFER_SIZE
01278             if buffering == 0:
01279                 return raw
01280             buffer = io.BufferedReader(raw, buffering)
01281             text = io.TextIOWrapper(buffer, None, None)
01282             text.mode = "rb"
01283             return text
01284 
    @staticmethod

Definition at line 1264 of file test_socket.py.

01264 
01265         def recv_into(self, buffer):
01266             data = next(self._recv_step)()
01267             assert len(buffer) >= len(data)
01268             buffer[:len(data)] = data
01269             return len(data)


Member Data Documentation

Definition at line 1262 of file test_socket.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: