3.2.4.3.8 Connect (Opnum 22)

The Connect method is received by the server in an RPC_REQUEST packet. In response, the server MUST connect the represented QueueManager to the network and to the directory.

 HRESULT Connect();

This method has no parameters.

Return Values: The method MUST return S_OK (0x00000000) to indicate success or an implementation-specific error HRESULT on failure.<17>

When the server processes this call, it MUST follow these guidelines:

  • If the ComputerName instance variable is NULL:

  • Else:

    • The server MUST generate a QMMgmt Action event with the following inputs:

      • iAction = "CONNECT"

    • The server MUST return rStatus, and MUST take no further action.