|
I've finally made it to the end of Scott Klement's Socket tutorial (welland
not quite, there's the UDP stuff at the very end).
I have a request to develop the back end code that will accept patient
payments over the internet. The web application is written in ASP.net
it will connect (using https) to an ILE RPG socket server. The webAfter
application will be sending a pipe delimited string of data.
Since the web application could accept multiple payment requests
simultaneously, I have a few questions:
Would a socket spawning approach be a good fit for this application?
(re)reading the tutorial I came to the conclusion that it would be,based
on the comment that should one job crash other jobs wouldn't be affectedvia
(as could be the case using the select() approach).
And since this application would be accepting input over the internet
server instances, I'm wondering if the RdLine/WrLine (as shown in theapproach
tutorial) is acceptable (as opposed to using GetLine & PutLine) from the
select() approach? Does it matter? I'm concerned that with either
I may still need to be concerned that the entire string of data(probably
not more than 2048 bytes) may not be received with one read - whichleads
to my next question:RdLine
Should the RdLine/GetLine occur in a loop to ensure the full contents of
the string are received? Or does specifying the (maximum) length of
always return (up to) that number of bytes?data
And finally, since the example SVREX7I does not use a "dow 1=1", I'm
coding my logic as follows:
1) Website connects to server instance, and passes data string to server
instance;
2) Server instance reads data via RdLine, does edits and returns result
string to website via WrLine;
3) Server instance ends.
At this point should the server instance job be allowed to end?
If for example, the results returned to the website indicate that the
string was incomplete or contained errors, should a subsequent retry (byinitial
the user) occur and interact with the server instance that did the
edit?have
Or should I allow a new server instance to take control?
My guess is that I would want a new server instance each time since I
no guarantee that the user on the internet will, with certainty,continue
the transaction to completion.the
This is the direction I'm moving in. Comments welcome.
Thanks!
Regards, Jerry
Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx
This e-mail message, including any attachments, is for the sole use of
intended recipient(s) and may contain confidential and privilegedlist
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.