An easier way of thinking about it is that the TIE is related to the TASK 
rather than the connection. 

Assuming a design where :

(a) You have a main listener task
(b) When connections are initiated, you hand off the work to subtasks (either 
ATTACHed on demand or pre-ATTACHed and woken up with some sort of 
"wait-for-work" ECB) - lets call these the "handler" tasks.

Then the TIE usage is as follows (simple example) :


Inside LISTENER
===============

INITAPI TIE=LISTENER_TIE
SOCKET  TIE=LISTENER_TIE
BIND    TIE=LISTENER_TIE
LISTEN  TIE=LISTENER_TIE
SELECT  TIE=LISTENER_TIE
....
Wait for something to happen.....
....
If incoming connection (pending read)
....
ACCEPT TIE=LISTENER_TIE
GIVESOCKET TIE=LISTENER_TIE
....
Post HANDLER ECB
....
....
If pending exception?
CLOSE TIE=LISTENER_TIE




Inside HANDLER
==============

INITAPI TIE=HANDLER_TIE
GETCLIENTID TIE=HANDLER_TIE
...
Wait for ECB post
...
TAKESOCKET TIE=HANDLER_TIE
...
Do the thing required
...
Terminating?
CLOSE TIE=HANDLER_TIE
TERMAPI TIE=HANDLER_TIE





Rob Scott
Developer
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.2305 
Email: rsc...@rs.com
Web: www.rocketsoftware.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Joe Reichman
Sent: 16 November 2009 09:54
To: IBM-MAIN@bama.ua.edu
Subject: Re: EZASMI TIE storage

After the Select (say I have four connections/tasks) where the sequence of 
Calls is Accept -> GiveSocket (and in the Task I do a ) TakeSocket which Causes 
a Exception in the Main Program Processing a Select (in the main
Program) then Close ( in the main program)  then processing goes to the Task to 
do a  Read/write 

Do all the Previous call/Call sequences use the Same Tie Storage   

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Rob Scott
Sent: Monday, November 16, 2009 3:33 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: EZASMI TIE storage

The TIE for the SELECT is normally the same one used on the INITAPI for your 
"listener" task. 


Rob Scott
Developer
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.2305
Email: rsc...@rs.com
Web: www.rocketsoftware.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Joe Reichman
Sent: 15 November 2009 21:16
To: IBM-MAIN@bama.ua.edu
Subject: EZASMI TIE storage

Hi,

 

Is there supposed to be A Task interface area for each Connection if so..

 

 

What Task Area should be coded on the Select the porpoise of which is to look 
for new connections/activity...  

 

 

   thankx


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to