Lines Matching refs:_sock
189 def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, _sock=None): argument
190 if _sock is None:
191 _sock = _realsocket(family, type, proto)
192 self._sock = _sock
194 setattr(self, method, getattr(_sock, method))
199 self._sock = _closedsocket()
200 dummy = self._sock._dummy
206 sock, addr = self._sock.accept()
207 return _socketobject(_sock=sock), addr
214 return _socketobject(_sock=self._sock)
221 return _fileobject(self._sock, mode, bufsize)
223 family = property(lambda self: self._sock.family, doc="the socket family")
224 type = property(lambda self: self._sock.type, doc="the socket type")
225 proto = property(lambda self: self._sock.proto, doc="the socket protocol")
228 return getattr(self._sock,name)(*args)
251 self._sock = sock
277 return self._sock is None
282 if self._sock:
286 self._sock.close()
287 self._sock = None
307 self._sock.sendall(view[write_offset:write_offset+buffer_size])
317 return self._sock.fileno()
355 data = self._sock.recv(rbufsize)
384 data = self._sock.recv(left)
430 recv = self._sock.recv
451 data = self._sock.recv(self._rbufsize)
480 data = self._sock.recv(self._rbufsize)