[parrot/parrot] 195402: Add a new Parrot_io_socket_recv_to_buffer to read ...

GitHub noreply at github.com
Sat May 19 01:21:42 UTC 2012


  Branch: refs/heads/whiteknight/gh_610
  Home:   https://github.com/parrot/parrot
  Commit: 195402ad34f1fef4ecdb70eed866344f4be15fe6
      https://github.com/parrot/parrot/commit/195402ad34f1fef4ecdb70eed866344f4be15fe6
  Author: Whiteknight <wknight8111 at gmail.com>
  Date:   2012-05-18 (Fri, 18 May 2012)

  Changed paths:
    M config/gen/makefiles/root.in
    M include/parrot/io.h
    M src/io/api.c
    M src/io/socket_api.c
    M src/pmc/filehandle.pmc
    M src/pmc/handle.pmc

  Log Message:
  -----------
  Add a new Parrot_io_socket_recv_to_buffer to read from a socket to a preexisting buffer. Refactor most of the guts of the FileHandle.read_bytes method into a new Parrot_io_read_byte_buffer_pmc. Move the read_bytes method from FileHandle to Handle to we can inherit it to Socket too.


  Commit: 3747017b764857abd836149a10cc99cc62b0f237
      https://github.com/parrot/parrot/commit/3747017b764857abd836149a10cc99cc62b0f237
  Author: Whiteknight <wknight8111 at gmail.com>
  Date:   2012-05-18 (Fri, 18 May 2012)

  Changed paths:
    M include/parrot/io.h
    M src/io/api.c
    M src/io/socket_api.c
    M src/pmc/handle.pmc

  Log Message:
  -----------
  Add a new .write_bytes() method to Handle, which will be inherited by FileHandle and Socket. This method reads bytes from a ByteBuffer and outputs to the handle. Untested and several codestd problems.


Compare: https://github.com/parrot/parrot/compare/195402a^...3747017


More information about the parrot-commits mailing list