| |
- __builtin__.object
-
- Connection
- SemLock
class Connection(__builtin__.object) |
|
Connection type whose constructor signature is
Connection(handle, readable=True, writable=True).
The constructor does *not* duplicate the handle. |
|
Methods defined here:
- __repr__(...)
- x.__repr__() <==> repr(x)
- close(...)
- close the connection
- fileno(...)
- file descriptor or handle of the connection
- poll(...)
- whether there is any input available to be read
- recv(...)
- receive a (picklable) object
- recv_bytes(...)
- receive byte data as a string
- recv_bytes_into(...)
- receive byte data into a writeable buffer-like object
returns the number of bytes read
- send(...)
- send a (picklable) object
- send_bytes(...)
- send the byte data from a readable buffer-like object
Data descriptors defined here:
- closed
- True if the connection is closed
- readable
- True if the connection is readable
- writable
- True if the connection is writable
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
|
class SemLock(__builtin__.object) |
|
Semaphore/Mutex type |
|
Methods defined here:
- __enter__(...)
- enter the semaphore/lock
- __exit__(...)
- exit the semaphore/lock
- acquire(...)
- acquire the semaphore/lock
- release(...)
- release the semaphore/lock
Data descriptors defined here:
- handle
- kind
- maxvalue
Data and other attributes defined here:
- SEM_VALUE_MAX = 32767L
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
| |