Generated from printsession.c with ROBODoc v3.2.3 on Fri Aug 02 11:27:57 2002
TABLE OF CONTENTS
- lib5250/tn5250_print_session_new
- lib5250/tn5250_print_session_destroy
- lib5250/tn5250_print_session_set_fd
- lib5250/tn5250_print_session_set_stream
- lib5250/tn5250_print_session_set_char_map
- lib5250/tn5250_print_session_set_output_command
- lib5250/tn5250_print_session_get_response_code
- lib5250/tn5250_print_session_main_loop
- lib5250/tn5250_print_session_waitevent
NAME
tn5250_print_session_new
SYNOPSIS
ret = tn5250_print_session_new ();
INPUTS
None
DESCRIPTION
DOCUMENT ME!!!
NAME
tn5250_print_session_destroy
SYNOPSIS
tn5250_print_session_destroy (This);
INPUTS
Tn5250PrintSession * This -
DESCRIPTION
DOCUMENT ME!!!
NAME
tn5250_print_session_set_fd
SYNOPSIS
tn5250_print_session_set_fd (This, fd);
INPUTS
Tn5250PrintSession * This -
SOCKET_TYPE fd -
DESCRIPTION
DOCUMENT ME!!!
NAME
tn5250_print_session_set_stream
SYNOPSIS
tn5250_print_session_set_stream (This, newstream);
INPUTS
Tn5250PrintSession * This -
Tn5250Stream * newstream -
DESCRIPTION
DOCUMENT ME!!!
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.
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!!!
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.
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.
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.