1. 20 Aug, 2008 1 commit
  2. 19 Aug, 2008 1 commit
    • Niels Möller's avatar
      (kill_io_fd_resource): New function, replacing · cce07bb8
      Niels Möller authored
      kill_io_connect_state and kill_io_listen_port.
      (init_io_connect_state): Updated for new super class
      io_fd_resource.
      (oop_io_connect): Likewise.
      (io_connect): Likewise.
      (init_io_listen_port): Likewise.
      (oop_io_accept): Likewise.
      (io_listen): Likewise.
      
      Rev: src/io.c:1.226
      cce07bb8
  3. 03 Aug, 2008 1 commit
  4. 26 May, 2008 1 commit
    • Niels Möller's avatar
      (kill_io_connect_state): Simplified, io_close_fd · 17068cee
      Niels Möller authored
      ignores negative fd:s.
      (kill_io_listen_port): New function.
      (init_io_listen_port): New function.
      (oop_io_accept): New function.
      (io_listen): New function, replacing function in io_commands.c.
      (sockaddr2info): Resurrected function. Use const sockaddr *
      argument. Handle only AF_INET and AF_INET6.
      (io_bind_local): Use const argument.
      (io_connect_local): Likewise.
      
      Rev: src/io.c:1.224
      17068cee
  5. 23 May, 2008 1 commit
  6. 15 May, 2008 1 commit
    • Niels Möller's avatar
      * src/channel.h: Deleted old if:ed out code. · fe754e2a
      Niels Möller authored
      * src/gc.c, src/gc.h: Likewise.
      * src/io.c, src/io_commands.h: Likewise.
      * src/lsh-make-seed.c: Likewise.
      * src/queue.c: Likewise.
      * src/server_config.c: Likewise.
      * src/werror.c: Likewise.
      
      Rev: src/channel.h:1.86
      Rev: src/gc.c:1.35
      Rev: src/gc.h:1.14
      Rev: src/io.c:1.222
      Rev: src/io_commands.h:1.36
      Rev: src/lsh-make-seed.c:1.22
      Rev: src/queue.c:1.15
      Rev: src/server_config.c:1.3
      Rev: src/werror.c:1.81
      fe754e2a
  7. 14 May, 2008 1 commit
  8. 12 May, 2008 1 commit
    • Niels Möller's avatar
      * src/io_commands.c (make_listen_value): Moved function here, from · 9fa8561d
      Niels Möller authored
      io.c. Also made static, changed interface to take a sockaddr as
      argument, and merged contents of sockaddr2info,
      (oop_io_port_accept): Updated call to make_listen_value.
      
      * src/io.h (class listen_value): Added port attribute.
      
      * src/io.c (make_listen_value, sockaddr2info): Deleted, moved to
      io_commands.c.
      
      Rev: src/io.c:1.220
      Rev: src/io.h:1.114
      Rev: src/io_commands.c:1.68
      9fa8561d
  9. 23 May, 2006 1 commit
  10. 18 May, 2006 1 commit
  11. 28 Feb, 2006 1 commit
    • Niels Möller's avatar
      (fd2info): Deleted. · fb664181
      Niels Möller authored
      (lsh_make_pipe): Don't use SHUT_RD_UNIX and SHUT_WR_UNIX.
      (choose_address, io_resolv_address, address_info2sockaddr): #if:ed
      out.
      
      Rev: src/io.c:1.215.2.17
      fb664181
  12. 23 Feb, 2006 1 commit
  13. 23 Jan, 2006 1 commit
  14. 09 Oct, 2005 2 commits
    • Niels Möller's avatar
      * src/io.c: Deleted obsoleted functionality. · c2340bfc
      Niels Möller authored
      (class io_listen_callback): Deleted class.
      (do_listen_callback, make_listen_callback): Deleted functions.
      (class io_connect_callback): Deleted class.
      (do_connect_callback, make_connect_callback): Deleted functions.
      (do_kill_fd, do_exc_io_handler): Deleted functions.
      (read_raw): Deleted function.
      (io_connect): Deleted old connect interface.
      (do_connect_list_kill, make_connect_list_state): Deleted functions.
      (class connect_list_callback): Deleted class.
      (connect_attempt, do_connect_list_callback)
      (make_connect_list_callback, io_connect_list): Deleted functions.
      (io_bind_sockaddr, io_listen, io_listen_list): Deleted old listen interface.
      (io_read_write, io_read, io_write): Deleted old constructors.
      (class write_only_file)): Deleted class.
      (io_write_file): Deleted function.
      (close_fd, close_fd_nicely, close_fd_read, close_fd_write):
      Deleted old close interface.
      (class exc_finish_read_handler)): Deleted class.
      (finish_read_exception, finish_io_exception): Deleted exceptions.
      (make_io_exception): Deleted function.
      
      Rev: src/io.c:1.215.2.15
      c2340bfc
    • Niels Möller's avatar
      Don't include string_buffer.h. · dc0de74e
      Niels Möller authored
      (io_read_file_raw): Use lsh_string_realloc, not the
      string_buffer abstraction.
      
      Rev: src/io.c:1.215.2.14
      dc0de74e
  15. 07 Oct, 2005 1 commit
    • Niels Möller's avatar
      (kill_io_connect_state, init_io_connect_state) · 26faff1a
      Niels Möller authored
      (oop_io_connect): New functions.
      (io_connect): New different interface, using class
      io_connect_state.
      (get_portno): Changed return type to unsigned.
      (io_make_sockaddr): Bug fixes. Now it seems to actually work.
      (io_lookup_address): New function.
      
      Rev: src/io.c:1.215.2.13
      26faff1a
  16. 06 Oct, 2005 1 commit
  17. 20 Sep, 2005 1 commit
    • Niels Möller's avatar
      Deleted old code. · 7a9d52fc
      Niels Möller authored
      (lsh_oop_fd_read_callback, lsh_oop_register_read_fd)
      (lsh_oop_cancel_read_fd, lsh_oop_fd_write_callback)
      (lsh_oop_register_write_fd, lsh_oop_cancel_write_fd)
      (list_files, do_buffered_read, make_buffered_read)
      (do_consuming_read, init_consuming_read, do_write_callback)
      (io_init_fd, make_lsh_fd, io_nfiles): Deleted functions.
      (make_listen_value): Deleted local argument. Use a raw fd, not
      struct lsh_fd.
      
      Rev: src/io.c:1.215.2.11
      7a9d52fc
  18. 19 Sep, 2005 1 commit
  19. 16 Sep, 2005 1 commit
  20. 15 Sep, 2005 2 commits
  21. 07 Sep, 2005 1 commit
  22. 31 Aug, 2005 1 commit
  23. 27 Apr, 2005 2 commits
    • Niels Möller's avatar
      * src/io.c (write_raw): Return an integer success indication, not · ca9cf0c8
      Niels Möller authored
      an exception. Updated all callers.
      
      Rev: src/client.c:1.166.2.2
      Rev: src/io.c:1.215.2.4
      Rev: src/io.h:1.110.2.2
      Rev: src/lsh-decode-key.c:1.22.2.1
      Rev: src/lsh-decrypt-key.c:1.2.2.1
      Rev: src/lsh-export-key.c:1.20.2.1
      Rev: src/lsh-keygen.c:1.20.2.1
      Rev: src/lsh-make-seed.c:1.15.2.1
      Rev: src/lsh-writekey.c:1.40.2.1
      Rev: src/unix_interact.c:1.27.2.1
      Rev: src/unix_random.c:1.17.2.1
      Rev: src/werror.c:1.73.2.2
      ca9cf0c8
    • Niels Möller's avatar
      (io_set_blocking): Deleted again. · f3d2e2f1
      Niels Möller authored
      Rev: src/io.c:1.215.2.3
      f3d2e2f1
  24. 26 Apr, 2005 1 commit
  25. 03 Feb, 2005 1 commit
  26. 26 Nov, 2004 1 commit
  27. 22 Nov, 2004 1 commit
    • Niels Möller's avatar
      * src/io.c (WITH_LIBOOP_SIGNAL_ADAPTER): Compile time choice of · 0b94ded0
      Niels Möller authored
      whether or not to use the liboop signal adapter.
      (io_init) [WITH_LIBOOP_SIGNAL_ADAPTER]: Create signal adapter.
      (io_final) [WITH_LIBOOP_SIGNAL_ADAPTER]: Destroy signal adapter.
      (make_lsh_fd): Files of both types IO_STDIO and IO_STDERR are
      shared. Bugfix: Don't reset type to zero.
      (write_only_file): New class.
      (do_write_only_file, make_io_write_file): New function.
      (io_write_file): Don't create a lsh_fd. Instead, use the simpler
      write_only_file, and return a struct abstract_write *. These files
      are never closed.
      (close_fd): Don't close files of type IO_STDERR. For files of type
      IO_STDIO, close them, and map the fd to /dev/null.
      
      * src/io.h (io_type): New enum constant IO_STDERR.
      
      Rev: src/io.c:1.214
      Rev: src/io.h:1.110
      0b94ded0
  28. 19 Nov, 2004 1 commit
    • Niels Möller's avatar
      (io_final): Assert that nfiles == 0. · db60d409
      Niels Möller authored
      (do_buffered_read): Added trace output on EOF.
      (do_consuming_read): Likewise.
      (close_fd_write): Added trace output. Close the file if there's no
      write buffer and no read callback.
      
      Rev: src/io.c:1.213
      db60d409
  29. 14 Nov, 2004 2 commits
  30. 09 Jun, 2004 1 commit
  31. 08 Jun, 2004 1 commit
    • Niels Möller's avatar
      * src/io.h (enum io_type): New type IO_STDIO. · 90b357c3
      Niels Möller authored
      * src/io.c (io_final): No longer any need to reset stdio file
      descriptors to blocking mode.
      (write_raw_with_poll): Deleted function.
      (io_set_type): Deleted function.
      (io_init_fd): New argument, allowing certain fd:s to remain in
      blocking mode.
      (make_lsh_fd): New argument TYPE. Updated callers.
      (close_fd): Don't close fd:s that are of type IO_STDIO.
      
      Rev: src/io.c:1.209
      Rev: src/io.h:1.108
      90b357c3
  32. 29 Feb, 2004 1 commit
  33. 26 Feb, 2004 1 commit
  34. 12 Feb, 2004 1 commit
  35. 16 Nov, 2003 1 commit
  36. 23 Oct, 2003 1 commit