Chapter Contents

Previous

Next
iucvacc

iucvacc



Perform an IUCV ACCEPT

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTION
IMPLEMENTATION
EXAMPLE


SYNOPSIS

#include <cmsiucv.h>

int iucvacc(const char *name, struct iucv_path_plist *acc_parmlst);


DESCRIPTION

iucvacc requests CMS to issue an IUCV ACCEPT. name points to a string that must match the name argument to a previously invoked iucvset function. acc_parmlst is a pointer to an IUCV ACCEPT parameter list.


RETURN VALUE

iucvacc returns 0 if the function call was successful. If signal(SIGIUCV,fp) has never been called, iucvacc returns - 1 . If the CMSIUCV macro returns a nonzero return code, iucvacc returns that value. If an IUCV error occurs, iucvacc returns 1 , and the value of IPRCODE is available in acc_parmlst-> ip.rcode .


CAUTION

You must call iucvset before calling iucvacc .


IMPLEMENTATION

iucvacc invokes the CMS CMSIUCV macro with the ACCEPT parameter.


EXAMPLE

#include <cmsiucv.h>

   /* Issue an IUCV ACCEPT in response to a             */ 
   /* pending connection.                               */ 
int rc; 
   /* external interrupt data for a pending connection  */ 
iucv_path_data *p_connect; 
   /* other IUCV CONNECT parameter list initializations */ 
. 
. 
. 
p_connect->  ip.type = 0;

rc = iucvacc("RECEIVER",p_connect);


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.