× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm not sure if this would be helpful, but perhaps you could look at the TNAPI (by Albert York) at http://www.think400.dk/downloads.htm

This api opens a telnet connection and allows for the manipulation of the terminal session, as if hands were keying into a terminal session. It is supposed to allow interactive applications to be operated in batch. Perhaps this could be modified to connect to a MS telnet service. At the very least, it may document how to handle the connection prolog.

I've never worked with this code, so perhaps I'm way off, but may be worth looking at.

Hth,
-Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon S
Sent: Friday, March 26, 2010 9:17 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Sockets and Telnet


port 23. It's definitely telnet.



This is coming back to my RPG program via the socket.



Welcome to Microsoft Telnet Service ïïïïlogin:





Date: Fri, 26 Mar 2010 09:32:05 -0400
From: mark.s.waterbury@xxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Sockets and Telnet

Hi, Jon:

Are you sure you are connecting to a telnet server? It sounds almost
like you are connecting to a TCP/IP "echo" service ... what port number
are you connecting to?

Mark S. Waterbury

Jon S wrote:
Ok, I have read all of the RFC's and I am feeling pretty smart about now. But, I have a question for anyone smarter than me. After I get my login prompt, I am sending my user name followed by a x'25(I am converting to ascii before I write to the socket), and all I receive back, is exactly what I sent it (after I convert it back to ebcidic). I have sent and IAC DON'T ECHO to no avail. Any ideas? Please, if you don't know the answer, don't respond.



Thanks, Jon









Date: Thu, 11 Mar 2010 12:51:22 -0600
From: rpg400-l@xxxxxxxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Sockets and Telnet

hi Jon,

You didn't find the answer to these questions in RFC 854 & RFC 855?

I can go back and read these RFCs and look for an answer (it been years
since I've written a telnet client, please don't expect me to have it
memorized) but it seems to me that you should be able to find it the
same way...

On 3/11/2010 10:34 AM, Jon S wrote:

I thought I was on the right path with this, but am still stuck.
Based upon these IAC's, can anyone tell me what I need to send back
to just get to a login prompt? No matter what I am sending, I never
receive anything back, it just hangs.

Do I need to respond one at a time, or can I respond to all with one
write to the socket?

I can find very little on this via google. I would think more folks
would have a need to do this. I can think of lots of uses.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
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.



_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
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.


_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.