1. 15 Sep, 2005 7 commits
    • Niels Möller's avatar
      (class connection): Inherit channel_table, · 25d696e2
      Niels Möller authored
      not resource.
      (kill_connection): Check the alive flag, and don't call exit here.
      (write_packet): Reintroduced connection argument. Use
      KILL_RESOURCE on errors. Make sure the packet is deallocated.
      (disconnect): Use KILL_RESOURCE, rather than exit.
      (do_write_packet): This is now a method of the channel_table class.
      (make_connection): Deleted exception_handler argument. Call
      io_register_fd. Disabled pty support for now.
      (do_exc_lshd_connection_handler): Deleted.
      
      Rev: src/lshd-connection.c:1.1.2.12
      25d696e2
    • Niels Möller's avatar
      (class connection): Inherit channel_table, not resource. · b6a62d4f
      Niels Möller authored
      (kill_connection): Check the alive flag, and don't call exit here.
      (write_packet): Adapted to changes to ssh_write.c. Make sure the
      packet is deallocated.
      (do_write_packet): This is now a method of the channel_table class.
      (make_connection): Deleted exception handler argument.
      (fork_lsh_transport): Deleted exception handler argument. Don't
      call io_set_nonblocking here.
      
      Rev: src/lsh.c:1.200.2.11
      b6a62d4f
    • Niels Möller's avatar
      Updated for changes to · 137bd26f
      Niels Möller authored
      transport_write.c/ssh_write.c.
      
      Rev: src/lsh-transport.c:1.1.2.13
      137bd26f
    • Niels Möller's avatar
      * src/io.c: Deleted HAVE_POLL conditionals. #if:ed out most of the · de64e6fe
      Niels Möller authored
      old i/o code.
      (global_oop_source, global_nfiles): Renamed, was source and
      nfiles.
      (io_register_fd, io_close_fd): New functions.
      (io_init): Reverted back to returning void.
      
      Rev: src/io.c:1.215.2.7
      Rev: src/io.h:1.110.2.4
      de64e6fe
    • Niels Möller's avatar
      (do_client_winch_handler): Use · b6cf9c0d
      Niels Möller authored
      CHANNEL_TABLE_WRITE, not A_WRITE.
      
      Rev: src/client_pty.c:1.27.2.2
      b6cf9c0d
    • Niels Möller's avatar
      (do_exit_status, do_exit_signal): DEcrement the · ae7e0a83
      Niels Möller authored
      sinks counter.
      (class detach_callback): #if:ed out.
      (make_client_start_session): Deleted wrapper function.
      (client_maybe_pty): #if:ed out pty support for now.
      (client_maybe_x11): #if:ed out x11 support for now.
      (make_client_session): Adapted to changed make_client_session_channel.
      
      Rev: src/client.c:1.166.2.5
      Rev: src/client.h:1.61.2.1
      ae7e0a83
    • Niels Möller's avatar
      (class client_session): Renamed, was · 7797e6b1
      Niels Möller authored
      client_session_channel. Use channel_read_state and
      channel_write_state instead of lsh_fd objects.
      (do_kill_client_session): New method.
      (oop_write_stdout, oop_write_stderr): New functions.
      (do_client_session_close): Deleted method.
      (do_client_session_eof): Updated to use channel_write_state_close.
      (do_receive): Use channel_io_write.
      (oop_read_stdin): New function.
      (do_send_adjust): Use channel_io_start_read.
      (command client_start_io): Rewritten.
      (make_client_session_channel): Don't set up a close handler.
      Rewritten i/o setup.
      
      Rev: src/client_session.c:1.21.2.1
      7797e6b1
  2. 14 Sep, 2005 10 commits
    • Niels Möller's avatar
      Use CHANNEL_TABLE_WRITE instead of · 455f4b10
      Niels Möller authored
      A_WRITE. Use CAST_SUBTYPE when casting to class channel_table.
      
      Rev: src/channel_commands.c:1.30.2.2
      455f4b10
    • Niels Möller's avatar
      Updated for changes to · 7f56c73c
      Niels Möller authored
      transport_write.c/ssh_write.c.
      
      Rev: src/transport.c:1.6.2.13
      7f56c73c
    • Niels Möller's avatar
      * src/channel.c (format_open_failure, format_channel_success) · 7956ad29
      Niels Möller authored
      (format_channel_failure): Made static.
      
      Rev: src/channel.c:1.125.2.7
      7956ad29
    • Niels Möller's avatar
      (enum channel_data_type): New enum. · 8695b686
      Niels Möller authored
      (enum channel_flag): Use an enum to define the channel flags.
      (CHANNEL_CLOSE_AT_EOF): Deleted.
      (class ssh_channel): Inherit resource, not flow_controlled. New
      attribute local_channel_number. Renamed channel_number to
      remote_channel_number. Deleted resource list and close method.
      New attribute sinks.
      (class channel_table): Inherit resource. Changed attribute write
      to a method. Deleted resource list.
      (CHANNEL_TABLE_WRITE): New method.
      
      Rev: src/channel.h:1.77.2.6
      8695b686
    • Niels Möller's avatar
      (PROTOCOL_ERROR): Redefine macro (kind of kludgy). · ed25b9f0
      Niels Möller authored
      (channel_pending_close, channel_finished): New functions, replacing the
      EXC_FINISH_PENDING and EXC_FINISH_CHANNEL exceptions.
      (format_global_failure, format_global_success)
      (format_open_confirmation, prepare_window_adjust): Made static.
      (class exc_finish_channel_handler): Deleted.
      (do_exc_finish_channel_handler, make_exc_finish_channel_handler):
      Deleted.
      (init_channel_table): Replaces make_channel_table. New arguments
      write and kill.
      (kill_channels): New function.
      (use_channel): Removed argument local_channel_number.
      (register_channel): Don't set up any exception handler. Initialize
      channel->local_channel_number.
      (lookup_channel, lookup_channel_reserved): Added asserts.
      (channel_adjust_rec_window): New function. Replaces
      adjust_rec_window.
      (channel_maybe_close): New function.
      (handle_channel_eof, channel_eof): Use channel_maybe_close.
      (handle_channel_close, handle_open_failure, channel_close): Use
      channel_finished.
      (channel_transmit_data, channel_transmit_extended): Send the data,
      rather than returning a formatted packet.
      
      Rev: src/channel.c:1.125.2.6
      ed25b9f0
    • Niels Möller's avatar
      New files. · 5dd0c957
      Niels Möller authored
      Rev: src/channel_io.c:1.1.2.1
      Rev: src/channel_io.h:1.1.2.1
      5dd0c957
    • Niels Möller's avatar
      (make_transport_write_state): Initialize · 2b4bb7e1
      Niels Möller authored
      ingore and threshold.
      (select_write_size): New function, moved from ssh_write.c.
      (update_status, write_data, write_flush): New functions, replacing
      code in ssh_write.c.
      (transport_write_packet, transport_write_line)
      (transport_write_flush): Updated to changes in ssh_write_state.
      
      Rev: src/transport_write.c:1.1.2.5
      2b4bb7e1
    • Niels Möller's avatar
      (class transport_write_state): New attributes · 4e8a40b0
      Niels Möller authored
      threshold and ignore, moved from class ssh_write_state.
      (enum transport_write_status): New status constants, replaces enum
      ssh_write_status.
      (enum transport_write_flag): New flags, replaces ssh_write_flag.
      
      Rev: src/transport.h:1.7.2.11
      4e8a40b0
    • Niels Möller's avatar
      (init_ssh_write_state, make_ssh_write_state): · a84143b2
      Niels Möller authored
      Deleted threshold argument.
      (select_write_size): Moved to transport_write.c.
      (ssh_write_flush): Return amount of data actually written rather
      than buffered. New
      argument to_write with the preferred write size.
      (ssh_write_enqueue): Renamed and made non-static. Old name was enqueue.
      (ssh_write_data): Rewritten, doesn't handle ignore packets. New
      argument to_write, and returns amount of data actually written
      rather than buffered.
      
      Rev: src/ssh_write.c:1.1.2.9
      a84143b2
    • Niels Möller's avatar
      (class ssh_write_state): Removed attributes · 3ca1661c
      Niels Möller authored
      threshold and ignore (moved to class transport_write_state).
      (enum ssh_write_status): Deleted.
      
      Rev: src/ssh_write.h:1.1.2.7
      3ca1661c
  3. 13 Sep, 2005 3 commits
    • Niels Möller's avatar
      (lsh_string_read): Loop on EINTR. · 52168c27
      Niels Möller authored
      Rev: src/lsh_string.c:1.2.2.5
      52168c27
    • Niels Möller's avatar
      (service_read_packet): Check if · b457c62f
      Niels Möller authored
      self->packet_length is zero first. Fixes bug when reading small
      packets.
      
      Rev: src/service_read.c:1.1.2.4
      b457c62f
    • Niels Möller's avatar
      (werror_format): Made static. Don't write program · b2b9a243
      Niels Möller authored
      name.
      (werror_hexdump): Use werror_format, to avoid redundant program
      name output.
      (werror_title): New function. Updated all users of werror_vformat
      to use it.
      (werror_vformat): Don't write program name. New specifier %T.
      (packet_types): Include this generated array here, used for %T.
      
      Rev: src/werror.c:1.73.2.4
      Rev: src/werror.h:1.35.2.2
      b2b9a243
  4. 08 Sep, 2005 1 commit
  5. 07 Sep, 2005 13 commits
  6. 06 Sep, 2005 6 commits