tcp: add Buffered and Available methods