Host-Connected Presentation Space

Connection to the host presentation space (or session) is controlled by using the Connect Presentation Space (1) and Disconnect Presentation Space (2) functions. The status of the connection determines whether some functions can be executed. It also affects how the PSID is defined. The following text explains how to control the status of the connection to the host presentation space:
  • At any given time, there can be either no host-connected presentation space, or there can be one and only one host-connected presentation space.
  • There is no default host-connected presentation space.
  • Following a connect, there is one and only one host-connected presentation space. The host presentation space that is connected is identified in the calling data string parameter of the connect function.
  • A subsequent call to connect can be executed with no intervening disconnect. In this case, there is still one and only one host-connected presentation space. Again, the host presentation space that is connected is identified in the calling data string parameter of the connect function.
  • Following a disconnect, there is no host-connected presentation space. This rule applies following multiple consecutive calls to connect or following a single call to connect.
  • You cannot connect to a logical printer session.