?? TITLE := 'NOS/VE :  NETWORK ACCESS METHOD' ??
MODULE nam$se_receive_data;
?? RIGHT := 110 ??
*copyc amh$also

?? NEWTITLE := 'Global Declarations Referenced By This Module', EJECT ??
?? PUSH (LISTEXT := ON) ??
*copyc amc$condition_code_limits
*copyc ame$improper_file_id
*copyc amt$call_block
*copyc amt$fap_layer_number
*copyc amt$fap_pointer
*copyc nat$se_peer_operation
?? POP ??
*copyc baf$task_file_entry_p
*copyc osp$set_status_abnormal
?? OLDTITLE ??
?? NEWTITLE := '  [XDCL] NAM$SE_RECEIVE_DATA' ??
*copyc nah$se_receive_data

  PROCEDURE [#GATE, XDCL] nap$se_receive_data
    (    file_identifier: amt$file_identifier;
         buffer: nat$data_fragments;
         wait: ost$wait;
     VAR peer_operation: nat$se_peer_operation;
     VAR activity_status: ost$activity_status;
     VAR status: ost$status);


    CONST
      interface_name = 'NAP$SE_ECEIVE_DATA',
      fap_layer_number = 0;

    VAR
      call_block: amt$call_block,
      file_instance_p: ^bat$task_file_entry;

    status.normal := TRUE;
    file_instance_p := baf$task_file_entry_p (file_identifier);
    IF file_instance_p = NIL THEN
      osp$set_status_abnormal (amc$access_method_id, ame$improper_file_id,
            interface_name, status);
      RETURN; {----->
    IFEND;

    call_block.operation := nac$se_receive_data_req;

    call_block.se_receive_data_req.buffer := ^buffer;
    call_block.se_receive_data_req.wait := wait;
    call_block.se_receive_data_req.peer_operation := ^peer_operation;
    call_block.se_receive_data_req.activity_status := ^activity_status;

    file_instance_p^.fap_control_information.first_fap.access_method^
          (file_identifier, call_block, fap_layer_number, status);

    IF NOT status.normal THEN
      IF (file_instance_p^.instance_attributes.dynamic_label.error_exit_procedure <> NIL) THEN
        file_instance_p^.instance_attributes.dynamic_label.error_exit_procedure^ (file_identifier, status);
      IFEND;
    IFEND;

  PROCEND nap$se_receive_data;
?? OLDTITLE ??
MODEND nam$se_receive_data;

