HPlogo LU 6.2 API Application Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 4 Conversation States

Receive State

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

In Receive state, a local TP can receive data and control information from a remote TP. A local TP can enter Receive state from Send state by calling either MCPrepToRcv or MCRcvAndWait. Both of these intrinsics cause the local side of the conversation to change from Send state to Receive state and the remote side to change from Receive state to Send state.

Since the TP in Send state controls the conversation, a TP in Receive state must wait to be placed in Send state by the controlling TP. A local TP in Receive state can request to enter Send state by calling the MCReqToSend intrinsic. The remote TP in Send state receives the request, enters Receive state, and places the local TP in Send state.

NOTE: If a TP in Receive state detects an error, it can enter Send state directly by calling MCSendError.

Table 4-4 “Receive State Intrinsics” lists the intrinsics that can be called from Receive state. It also indicates what state the TP is in after each intrinsic executes successfully. MCRcvAndWait and MCRcvNoWait can place the local side of the conversation in several different states, depending on the type of information received from the remote TP.

From Receive state, the MCDeallocate intrinsic can be called only with the DeallocateType parameter set to 2 (ABEND). See the description of MCDeallocate in Chapter 5 “ Intrinsic Descriptions” for more information.

Table 4-4 Receive State Intrinsics

Intrinsic

State Entered Upon Successful Execution

MCDeallocate DeallocateType= 2 (ABEND)

Reset

MCErrMsg

Receive

MCGetAttr

Receive

MCPostOnRcpt

Receive

MCRcvAndWait or MCRcvNoWait

WhatReceived=

{ 1 (DATA_COMPLETE) } { 2 (DATA_INCOMPLETE) } { 4 (SEND) } { 5 (CONFIRM) } { 6 (CONFIRM_SEND) } { 7 (CONFIRM_DEALLOCATE) }

Receive Receive Send Confirm Confirm Send Confirm Deallocate

MCReqToSend

Receive

MCSendError

Send

MCTest

Receive

MCWait

Receive

 

Feedback to webmaster