|
Does the fact that I get an integer rather than -1 mean that I DID get a connection?
It's hard to tell when I can't see a reply, and my attempts to get a reply have failed so far.
1.) Regarding the connect:
Or do I need to do a connect() in RPG and then, once I'm connected to
the server through the RPG program, send their CONNECT data to their
CONNECT API. It seems odd that I have to connect() so that I can
CONNECT.
My question: Is that string something that I need to set up in the
data structure going into connect()?
You did say in the "Introduction to TCP/IP Programming" that data
structure in the sample (connto), a likeds to sockaddr_in And you
said that "There are different socket address data structures for
different network protocols."
Do I need to do the connect() and THEN do a SendAscii with the string
starting '0000000035CONNECT|...
Since I AM getting an integer with the connect(), may be I was
correct with my connect logic and I have a problem with the send().
Again, I'm not sure how to re-code it
I'm trying to write the procedure so that, after I do the SendAscii
that would receive data back and convert it back to EBCDIC from
ASCII, sort of the opposite of SendAscii... RecvAscii.
It's getting a -1 on RecLen = recv(s: RspBufAdr : RspBufLen : 0);
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.