Generated from printsession.c with ROBODoc v3.2.3 on Tue Aug 21 10:13:17 2001

TABLE OF CONTENTS

  1. lib5250/tn5250_print_session_new
  2. lib5250/tn5250_print_session_destroy
  3. lib5250/tn5250_print_session_set_fd
  4. lib5250/tn5250_print_session_set_stream
  5. lib5250/tn5250_print_session_set_char_map
  6. lib5250/tn5250_print_session_set_output_command
  7. lib5250/tn5250_print_session_get_response_code
  8. lib5250/tn5250_print_session_main_loop
  9. lib5250/tn5250_print_session_waitevent

lib5250/tn5250_print_session_new

NAME
    tn5250_print_session_new
SYNOPSIS
    ret = tn5250_print_session_new ();
INPUTS
    None
DESCRIPTION
    DOCUMENT ME!!!

lib5250/tn5250_print_session_destroy

NAME
    tn5250_print_session_destroy
SYNOPSIS
    tn5250_print_session_destroy (This);
INPUTS
    Tn5250PrintSession * This       - 
DESCRIPTION
    DOCUMENT ME!!!

lib5250/tn5250_print_session_set_fd

NAME
    tn5250_print_session_set_fd
SYNOPSIS
    tn5250_print_session_set_fd (This, fd);
INPUTS
    Tn5250PrintSession * This       - 
    SOCKET_TYPE          fd         - 
DESCRIPTION
    DOCUMENT ME!!!

lib5250/tn5250_print_session_set_stream

NAME
    tn5250_print_session_set_stream
SYNOPSIS
    tn5250_print_session_set_stream (This, newstream);
INPUTS
    Tn5250PrintSession * This       - 
    Tn5250Stream *       newstream  - 
DESCRIPTION
    DOCUMENT ME!!!

lib5250/tn5250_print_session_set_char_map

NAME
    tn5250_print_session_set_char_map
SYNOPSIS
    tn5250_print_session_set_char_map (This, map);
INPUTS
    Tn5250PrintSession * This       - 
    const char *         map        -
DESCRIPTION
    Sets the current translation map for this print session.  This is
    used to translate response codes to something we can use.

lib5250/tn5250_print_session_set_output_command

NAME
    tn5250_print_session_set_output_command
SYNOPSIS
    tn5250_print_session_set_output_command (This, output_cmd);
INPUTS
    Tn5250PrintSession * This       - 
    const char *         output_cmd - 
DESCRIPTION
    DOCUMENT ME!!!

lib5250/tn5250_print_session_get_response_code

NAME
    tn5250_print_session_get_response_code
SYNOPSIS
    rc = tn5250_print_session_get_response_code (This, code);
INPUTS
    Tn5250PrintSession * This       - 
    char *               code       - 
DESCRIPTION
    Retrieves the response code from the startup response record.  The 
    function returns 1 for a successful startup, and 0 otherwise.  On return,
    code contains the 5 character response code.

lib5250/tn5250_print_session_main_loop

NAME
    tn5250_print_session_main_loop
SYNOPSIS
    tn5250_print_session_main_loop (This);
INPUTS
    Tn5250PrintSession * This       - 
DESCRIPTION
    This function continually loops, waiting for print jobs from the AS/400.
    When it gets one, it sends it to the output command which was specified 
    on the command line.  If the host closes the socket, we exit.

lib5250/tn5250_print_session_waitevent

NAME
    tn5250_print_session_waitevent
SYNOPSIS
    ret = tn5250_print_session_waitevent (This);
INPUTS
    Tn5250PrintSession * This       - 
DESCRIPTION
    Calls select() to wait for data to arrive on the socket fdr.
    This is the socket being used by the print session to communicate
    with the AS/400.  There is no timeout, so the function will wait forever
    if no data arrives.