Buffered Socket

class support.buffered_socket.BufferedSocket(sock, timeout=10, maxbytes=32768)[source]
buffer(data)[source]
close()[source]
flush()[source]
peek(n, timeout=None)[source]

peek n bytes from the socket, but keep them in the buffer

recv(size, flags=0, timeout=<object object>)[source]
recv_all(size, timeout=<object object>)[source]

read off of socket until size bytes have been read

recv_until(marker, timeout=<object object>, maxbytes=<object object>)[source]

read off of socket until the marker is found

send(data, flags=0, timeout=<object object>)[source]
sendall(data, flags=0, timeout=<object object>)
setmaxbytes(maxbytes)[source]
settimeout(timeout)[source]
shutdown(how)[source]
exception support.buffered_socket.ConnectionClosed[source]
exception support.buffered_socket.Error[source]
exception support.buffered_socket.NotFound(symbol, bytes_read)[source]
exception support.buffered_socket.Timeout(timeout, extra='')[source]