Package coro :: Module _coro :: Class fd_sock
[hide private]
[frames] | no frames]

Class fd_sock

object --+    
         |    
      sock --+
             |
            fd_sock

A file-descriptor wrapper using the socket object.

The constructor takes one argument:

When the object is deallocated, the file descriptor is closed.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)

Inherited from sock: __repr__, accept, accept_many, bind, close, connect, dup, fileno, get_fileno, getpeername, getsockname, getsockopt, listen, makefile, read, readv, recv, recv_exact, recv_into, recvfrom, recvfrom_into, send, sendall, sendto, set_reuse_addr, setsockopt, shutdown, wait_for_read, wait_for_write, write, writev

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from sock: domain, fd, orig_fd, stype

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__